language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
Rust
hhvm/hphp/hack/src/hackc/emitter/emit_statement.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use emit_pos::emit_pos; use emit_pos::emit_pos_then; use env::emitter::Emitter; use env::Env; use error::Error; use error::Result; use ff...
Rust
hhvm/hphp/hack/src/hackc/emitter/emit_typedef.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use env::emitter::Emitter; use error::Result; use hhbc::ClassName; use hhbc::Span; use hhbc::Typedef; use hhvm_types_ffi::ffi::Attr; use ...
Rust
hhvm/hphp/hack/src/hackc/emitter/emit_type_constant.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::collections::BTreeMap; use error::Error; use error::Result; use hhbc::DictEntry; use hhbc::TypedValue; use hhbc_string_utils a...
Rust
hhvm/hphp/hack/src/hackc/emitter/emit_unit.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. #![feature(box_patterns)] mod emit_adata; mod emit_attribute; mod emit_body; mod emit_class; mod emit_constant; mod emit_expression; mo...
Rust
hhvm/hphp/hack/src/hackc/emitter/emit_xhp.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use emit_property::PropAndInit; use env::emitter::Emitter; use error::Error; use error::Result; use hack_macros::hack_expr; use hack_macr...
Rust
hhvm/hphp/hack/src/hackc/emitter/env.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. mod adata_state; mod class_expr; pub mod emitter; // emitter is public API for mutating state mod iterator; pub mod jump_targets; mod la...
Rust
hhvm/hphp/hack/src/hackc/emitter/generator.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use oxidized::aast_visitor::visit; use oxidized::aast_visitor::AstParams; use oxidized::aast_visitor::Node; use oxidized::aast_visitor::V...
Rust
hhvm/hphp/hack/src/hackc/emitter/global_state.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::sync::Arc; use hhbc::Coeffects; use oxidized::ast_defs::Abstraction; use oxidized::ast_defs::ClassishKind; use oxidized::names...
Rust
hhvm/hphp/hack/src/hackc/emitter/instruction_sequence.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Slice; use hhbc::Instruct; use hhbc::Pseudo; /// The various from_X functions below take some kind of AST /// (expression, sta...
Rust
hhvm/hphp/hack/src/hackc/emitter/iterator.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use hhbc::IterId; #[derive(Default, Debug, Clone)] pub struct IterGen { pub next: IterId, count: u32, } impl IterGen { pub ...
Rust
hhvm/hphp/hack/src/hackc/emitter/jump_targets.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use hhbc::IterId; use hhbc::Label; #[derive(Clone, Debug, Default, Copy, Eq, PartialEq, Hash, Ord, PartialOrd)] pub struct StateId(pub ...
Rust
hhvm/hphp/hack/src/hackc/emitter/label.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use hhbc::Label; #[derive(Debug)] pub struct LabelGen { next: Label, } impl LabelGen { pub fn new() -> Self { Self { ne...
Rust
hhvm/hphp/hack/src/hackc/emitter/label_rewriter.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use env::emitter::Emitter; use env::LabelGen; use hash::HashMap; use hash::HashSet; use hhbc::Instruct; use hhbc::Label; use hhbc::Opcod...
Rust
hhvm/hphp/hack/src/hackc/emitter/local.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use hhbc::Local; #[derive(Debug)] pub struct LocalGen { pub counter: Counter, pub dedicated: Dedicated, } impl LocalGen { p...
Rust
hhvm/hphp/hack/src/hackc/emitter/reified_generics_helpers.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use decl_provider::TypeDecl; use env::emitter::Emitter; use env::Env; use error::Result; use hash::HashSet; use instruction_sequence::in...
Rust
hhvm/hphp/hack/src/hackc/emitter/scope.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use env::emitter::Emitter; use env::LabelGen; use error::Result; use hhbc::Instruct; use hhbc::IterId; use hhbc::Label; use hhbc::Local; ...
Rust
hhvm/hphp/hack/src/hackc/emitter/statement_state.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use instruction_sequence::instr; use instruction_sequence::InstrSeq; use oxidized::aast; use oxidized::pos::Pos; #[derive(Debug)] pub s...
Rust
hhvm/hphp/hack/src/hackc/emitter/try_finally_rewriter.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::collections::BTreeMap; use bitflags::bitflags; use emit_pos::emit_pos; use env::emitter::Emitter; use env::jump_targets as jt; ...
Rust
hhvm/hphp/hack/src/hackc/emitter/xhp_attribute.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use oxidized::ast; use oxidized::pos::Pos; #[derive(Debug)] pub struct XhpAttribute<'a> { pub type_: Option<&'a ast::Hint>, pub...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/ast_scope/Cargo.toml
# @generated by autocargo [package] name = "ast_scope" version = "0.0.0" edition = "2021" [lib] path = "../../ast_scope.rs" [dependencies] bumpalo = { version = "3.11.1", features = ["collections"] } hhbc = { version = "0.0.0", path = "../../../hhbc/cargo/hhbc" } oxidized = { version = "0.0.0", path = "../../../../o...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/constant_folder/Cargo.toml
# @generated by autocargo [package] name = "constant_folder" version = "0.0.0" edition = "2021" [lib] path = "../../constant_folder.rs" [dependencies] ast_scope = { version = "0.0.0", path = "../ast_scope" } bumpalo = { version = "3.11.1", features = ["collections"] } env = { version = "0.0.0", path = "../env" } ffi...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/emit_pos/Cargo.toml
# @generated by autocargo [package] name = "emit_pos" version = "0.0.0" edition = "2021" [lib] path = "../../emit_pos.rs" [dependencies] instruction_sequence = { version = "0.0.0", path = "../instruction_sequence" } oxidized = { version = "0.0.0", path = "../../../../oxidized" }
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/emit_type_hint/Cargo.toml
# @generated by autocargo [package] name = "emit_type_hint" version = "0.0.0" edition = "2021" [lib] path = "../../emit_type_hint.rs" [dependencies] bumpalo = { version = "3.11.1", features = ["collections"] } error = { version = "0.0.0", path = "../../../error/cargo/error" } ffi = { version = "0.0.0", path = "../.....
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/emit_unit/Cargo.toml
# @generated by autocargo [package] name = "emit_unit" version = "0.0.0" edition = "2021" [lib] path = "../../emit_unit.rs" [dependencies] ast_scope = { version = "0.0.0", path = "../ast_scope" } bitflags = "1.3" bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] } bumpalo = { version = "3.11.1", fea...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/env/Cargo.toml
# @generated by autocargo [package] name = "env" version = "0.0.0" edition = "2021" [lib] path = "../../env.rs" [dependencies] ast_scope = { version = "0.0.0", path = "../ast_scope" } bitflags = "1.3" bumpalo = { version = "3.11.1", features = ["collections"] } decl_provider = { version = "0.0.0", path = "../../../d...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/global_state/Cargo.toml
# @generated by autocargo [package] name = "global_state" version = "0.0.0" edition = "2021" [lib] path = "../../global_state.rs" [dependencies] hhbc = { version = "0.0.0", path = "../../../hhbc/cargo/hhbc" } oxidized = { version = "0.0.0", path = "../../../../oxidized" } unique_id_builder = { version = "0.0.0", pat...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/instruction_sequence/Cargo.toml
# @generated by autocargo [package] name = "instruction_sequence" version = "0.0.0" edition = "2021" [lib] path = "../../instruction_sequence.rs" [dependencies] bumpalo = { version = "3.11.1", features = ["collections"] } emit_opcodes_macro = { version = "0.0.0", path = "../../../hhbc/cargo/emit_opcodes_macro" } ffi...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/label_rewriter/Cargo.toml
# @generated by autocargo [package] name = "label_rewriter" version = "0.0.0" edition = "2021" [lib] path = "../../label_rewriter.rs" [dependencies] bumpalo = { version = "3.11.1", features = ["collections"] } env = { version = "0.0.0", path = "../env" } ffi = { version = "0.0.0", path = "../../../../utils/ffi" } ha...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/scope/Cargo.toml
# @generated by autocargo [package] name = "scope" version = "0.0.0" edition = "2021" [lib] path = "../../scope.rs" [dependencies] env = { version = "0.0.0", path = "../env" } error = { version = "0.0.0", path = "../../../error/cargo/error" } hhbc = { version = "0.0.0", path = "../../../hhbc/cargo/hhbc" } instructio...
TOML
hhvm/hphp/hack/src/hackc/emitter/cargo/statement_state/Cargo.toml
# @generated by autocargo [package] name = "statement_state" version = "0.0.0" edition = "2021" [lib] path = "../../statement_state.rs" [dependencies] instruction_sequence = { version = "0.0.0", path = "../instruction_sequence" } oxidized = { version = "0.0.0", path = "../../../../oxidized" }
Rust
hhvm/hphp/hack/src/hackc/error/assertion_utils.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use oxidized::ast; use oxidized::ast_defs::ParamKind; use crate::Error; use crate::Result; pub fn expect_normal_paramkind(arg: &(Param...
Rust
hhvm/hphp/hack/src/hackc/error/error.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. mod assertion_utils; pub use assertion_utils::*; use hhvm_hhbc_defs_ffi::ffi::FatalOp; use oxidized::ast_defs::Pos; use thiserror::Error...
TOML
hhvm/hphp/hack/src/hackc/error/cargo/error/Cargo.toml
# @generated by autocargo [package] name = "error" version = "0.0.0" edition = "2021" [lib] path = "../../error.rs" [dependencies] hhvm_hhbc_defs_ffi = { version = "0.0.0", path = "../../../hhvm_cxx/hhvm_hhbc_defs" } oxidized = { version = "0.0.0", path = "../../../../oxidized" } thiserror = "1.0.43"
Rust
hhvm/hphp/hack/src/hackc/facts/facts.rs
// Copyright (c) 2019, Facebook, Inc. // All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::collections::BTreeMap; use std::collections::BTreeSet; use hhbc_string_utils::mangle_xhp_id; use hhbc_string_utils::...
TOML
hhvm/hphp/hack/src/hackc/facts/cargo/facts_rust/Cargo.toml
# @generated by autocargo [package] name = "facts" version = "0.0.0" edition = "2021" [lib] path = "../../facts.rs" [dependencies] hhbc_string_utils = { version = "0.0.0", path = "../../../utils/cargo/hhbc_string_utils" } naming_special_names_rust = { version = "0.0.0", path = "../../../../naming" } oxidized_by_ref ...
TOML
hhvm/hphp/hack/src/hackc/ffi_bridge/Cargo.toml
# @generated by autocargo [package] name = "compiler_ffi" version = "0.0.0" edition = "2021" [lib] path = "compiler_ffi.rs" crate-type = ["lib", "staticlib"] [dependencies] anyhow = "1.0.71" bincode = "1.3.3" bumpalo = { version = "3.11.1", features = ["collections"] } compile = { version = "0.0.0", path = "../compi...
Rust
hhvm/hphp/hack/src/hackc/ffi_bridge/compiler_ffi.rs
// Copyright (c) 2019, Facebook, Inc. // All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. // Module containing conversion methods between the Rust Facts and // Rust/C++ shared Facts (in the compile_ffi module) mod co...
Rust
hhvm/hphp/hack/src/hackc/ffi_bridge/compiler_ffi_impl.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::collections::BTreeMap; use std::collections::BTreeSet; use itertools::Itertools; use super::*; impl From<compile_ffi::TypeKin...
C/C++
hhvm/hphp/hack/src/hackc/ffi_bridge/decl_provider.h
// Copyright (c) 2019, Facebook, Inc. // All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. #pragma once #include <string> #include "hphp/hack/src/hackc/ffi_bridge/compiler_ffi.rs.h" namespace HPHP { namespace hackc {...
C++
hhvm/hphp/hack/src/hackc/ffi_bridge/external_decl_provider.cpp
// Copyright (c) 2019, Facebook, Inc. // All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. #include "hphp/hack/src/hackc/ffi_bridge/decl_provider.h" using namespace HPHP::hackc; // These stubs perform C++ virtual me...
Rust
hhvm/hphp/hack/src/hackc/ffi_bridge/external_decl_provider.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::cell::RefCell; use std::ffi::c_void; use cxx::CxxString; use decl_provider::ConstDecl; use decl_provider::Error; use decl_prov...
Rust
hhvm/hphp/hack/src/hackc/hhbc/adata.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use serde::Serialize; use crate::typed_value::TypedValue; use crate::AdataId; #[derive(Debug, Eq, PartialEq, Serialize)] #[repr(C)] pu...
Rust
hhvm/hphp/hack/src/hackc/hhbc/attribute.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Slice; use ffi::Str; use naming_special_names::user_attributes as ua; use naming_special_names_rust as naming_special_names; us...
Rust
hhvm/hphp/hack/src/hackc/hhbc/body.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Slice; use ffi::Str; use serde::Serialize; use crate::Instruct; use crate::Param; use crate::TypeInfo; use cra...
Rust
hhvm/hphp/hack/src/hackc/hhbc/class.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Slice; use ffi::Str; use hhvm_types_ffi::ffi::Attr; use serde::Serialize; use crate::Attribute; use crate::Cla...
Rust
hhvm/hphp/hack/src/hackc/hhbc/coeffects.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use bumpalo::Bump; use ffi::Slice; use ffi::Str; use hhbc_string_utils::strip_ns; use naming_special_names_rust::coeffects as c; use nam...
Rust
hhvm/hphp/hack/src/hackc/hhbc/constant.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. // Interestingly, HHAS does not represent the declared types of constants, // unlike formal parameters and return types. We might consid...
Rust
hhvm/hphp/hack/src/hackc/hhbc/decl_vars.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Just; use ffi::Maybe; use hash::IndexSet; use naming_special_names_rust::emitter_special_functions; use naming_special_names_ru...
Rust
hhvm/hphp/hack/src/hackc/hhbc/dump_opcodes.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::fs::File; use std::io::Write; use std::path::PathBuf; use std::process::Command; use std::process::Stdio; use anyhow::Result; ...
Rust
hhvm/hphp/hack/src/hackc/hhbc/emit_opcodes.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use hhbc_gen::ImmType; use hhbc_gen::Inputs; use hhbc_gen::InstrFlags; use hhbc_gen::OpcodeData; use hhbc_gen::Outputs; use proc_macro2:...
Rust
hhvm/hphp/hack/src/hackc/hhbc/emit_opcodes_macro.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. /// Emit the opcodes enum. Given input that looks like this: /// /// ``` /// #[macros::emit_opcodes] /// enum MyCrazyOpcodes<'lifetime> ...
Rust
hhvm/hphp/hack/src/hackc/hhbc/function.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use bitflags::bitflags; use ffi::Slice; use hhvm_types_ffi::ffi::Attr; use serde::Serialize; use crate::Attribute; use crate::Body; use...
Rust
hhvm/hphp/hack/src/hackc/hhbc/id.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. // Note: `$type<'arena>` is a newtype over a `&'arena str` // (`class::Type<'arena>`, `function::Type<'arena>`, ...). We intend that the...
Rust
hhvm/hphp/hack/src/hackc/hhbc/instruct.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Slice; use ffi::Str; use serde::Serialize; use crate::opcodes::Opcode; use crate::typed_value::TypedValue; use crate::FCallArg...
Rust
hhvm/hphp/hack/src/hackc/hhbc/lib.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. #![feature(box_patterns)] mod adata; mod attribute; mod body; mod class; mod coeffects; mod constant; pub mod decl_vars; mod function; ...
Rust
hhvm/hphp/hack/src/hackc/hhbc/method.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use bitflags::bitflags; use ffi::Slice; use hhvm_types_ffi::ffi::Attr; use serde::Serialize; use crate::Attribute; use crate::Body; use...
Rust
hhvm/hphp/hack/src/hackc/hhbc/module.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Slice; use ffi::Str; use serde::Serialize; use crate::Attribute; use crate::ClassName; use crate::Span; #[der...
Rust
hhvm/hphp/hack/src/hackc/hhbc/opcodes.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use emit_opcodes_macro::Targets; use ffi::Slice; use ffi::Str; use serde::Serialize; use crate::AdataId; use crate::BareThisOp; use cra...
Rust
hhvm/hphp/hack/src/hackc/hhbc/opcode_test_data.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use hhbc_gen::ImmType; use hhbc_gen::Inputs; use hhbc_gen::InstrFlags; use hhbc_gen::OpcodeData; use hhbc_gen::Outputs; pub fn test_opc...
Rust
hhvm/hphp/hack/src/hackc/hhbc/param.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Maybe::*; use ffi::Slice; use ffi::Str; use serde::Serialize; use crate::Attribute; use crate::Constraint; use...
Rust
hhvm/hphp/hack/src/hackc/hhbc/pos.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use serde::Serialize; // Keep this in sync with HPHP::SourceLoc in hphp/runtime/vm/source-location.h #[derive(Clone, Copy, Debug, Eq, Pa...
Rust
hhvm/hphp/hack/src/hackc/hhbc/property.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Slice; use ffi::Str; use hhvm_types_ffi::ffi::Attr; use serde::Serialize; use crate::Attribute; use crate::Pro...
Rust
hhvm/hphp/hack/src/hackc/hhbc/symbol_refs.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::cmp::Ordering; use std::collections::BTreeMap; use std::collections::BTreeSet; use std::ffi::OsStr; use std::os::unix::ffi::OsSt...
Rust
hhvm/hphp/hack/src/hackc/hhbc/typedef.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Slice; use hhvm_types_ffi::ffi::Attr; use serde::Serialize; use crate::Attribute; use crate::ClassName; use crate::Span; use c...
Rust
hhvm/hphp/hack/src/hackc/hhbc/typed_value.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Slice; use ffi::Str; use serde::Serialize; /// Raw IEEE floating point bits. We use this rather than f64 so that /// hash/equa...
Rust
hhvm/hphp/hack/src/hackc/hhbc/types.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Maybe::Just; use ffi::Slice; use ffi::Str; use hhvm_types_ffi::ffi::TypeConstraintFlags; use serde::Serialize; ...
Rust
hhvm/hphp/hack/src/hackc/hhbc/type_const.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Str; use serde::Serialize; use crate::typed_value::TypedValue; #[derive(Debug, Eq, PartialEq, Serialize)] #[r...
Rust
hhvm/hphp/hack/src/hackc/hhbc/unit.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ffi::Maybe; use ffi::Slice; use ffi::Str; use serde::Serialize; use crate::Adata; use crate::Attribute; use crate::Class; use crate...
Rust
hhvm/hphp/hack/src/hackc/hhbc/unit_cbindgen.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. /// This definition exists for ffi_cbindgen C++ header generation. Any /// attempt to call this function will result in an intentional /...
TOML
hhvm/hphp/hack/src/hackc/hhbc/cargo/dump-opcodes/Cargo.toml
# @generated by autocargo [package] name = "dump-opcodes" version = "0.0.0" edition = "2021" [[bin]] name = "dump_opcodes" path = "../../dump_opcodes.rs" [dependencies] anyhow = "1.0.71" clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] } emit_opcodes = { version = "0.0.0", p...
TOML
hhvm/hphp/hack/src/hackc/hhbc/cargo/emit_opcodes/Cargo.toml
# @generated by autocargo [package] name = "emit_opcodes" version = "0.0.0" edition = "2021" [lib] path = "../../emit_opcodes.rs" [dependencies] convert_case = "0.4.0" hhbc-gen = { version = "0.0.0", path = "../../../../../../tools/hhbc-gen" } proc-macro2 = { version = "1.0.64", features = ["span-locations"] } quote...
TOML
hhvm/hphp/hack/src/hackc/hhbc/cargo/emit_opcodes_macro/Cargo.toml
# @generated by autocargo [package] name = "emit_opcodes_macro" version = "0.0.0" edition = "2021" [lib] path = "../../emit_opcodes_macro.rs" test = false doctest = false proc-macro = true [dependencies] emit_opcodes = { version = "0.0.0", path = "../emit_opcodes" } hhbc-gen = { version = "0.0.0", path = "../../../....
TOML
hhvm/hphp/hack/src/hackc/hhbc/cargo/hhbc/Cargo.toml
# @generated by autocargo [package] name = "hhbc" version = "0.0.0" edition = "2021" [lib] path = "../../lib.rs" [dependencies] bitflags = "1.3" bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] } bumpalo = { version = "3.11.1", features = ["collections"] } emit_opcodes_macro = { version = "0.0.0", ...
TOML
hhvm/hphp/hack/src/hackc/hhbc/cargo/opcode_test_data/Cargo.toml
# @generated by autocargo [package] name = "opcode_test_data" version = "0.0.0" edition = "2021" [lib] path = "../../opcode_test_data.rs" [dependencies] hhbc-gen = { version = "0.0.0", path = "../../../../../../tools/hhbc-gen" }
Rust
hhvm/hphp/hack/src/hackc/hhvm_config/hhvm_config.rs
// Copyright (c) 2019; Facebook; Inc. // All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use anyhow::Result; use hhvm_options::HhvmConfig; use options::HhbcFlags; use options::JitEnableRenameFunction; use options::Pa...
TOML
hhvm/hphp/hack/src/hackc/hhvm_config/cargo/options/Cargo.toml
# @generated by autocargo [package] name = "hhvm_config" version = "0.0.0" edition = "2021" [lib] path = "../../hhvm_config.rs" [dependencies] anyhow = "1.0.71" hhvm_options = { version = "0.0.0", path = "../../../../utils/hhvm_options" } options = { version = "0.0.0", path = "../../../compile/cargo/options" }
C++
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_hhbc_defs/as-hhbc-ffi.cpp
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
C/C++
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_hhbc_defs/as-hhbc-ffi.h
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
Rust
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_hhbc_defs/build.rs
use std::path::Path; use std::path::PathBuf; use std::process::Command; fn main() { // Assume the hack workspace 'fbcode/hphp/hack/src/Cargo.toml'. let mut cargo_cmd = Command::new("cargo"); cargo_cmd.args(&["locate-project", "--workspace", "--message-format=plain"]); let output = cargo_cmd.output().un...
TOML
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_hhbc_defs/Cargo.toml
# @generated by autocargo [package] name = "hhvm_hhbc_defs_ffi" version = "0.0.0" edition = "2021" [lib] path = "hhvm_hhbc_defs_ffi.rs" crate-type = ["lib", "staticlib"] [dependencies] cxx = "1.0.100" serde = { version = "1.0.176", features = ["derive", "rc"] } [build-dependencies] cxx-build = "1.0.100"
Rust
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_hhbc_defs/hhvm_hhbc_defs_ffi.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::ops::BitAnd; use std::ops::BitOr; use std::ops::BitOrAssign; #[allow(unreachable_patterns)] #[cxx::bridge(namespace = "HPHP")]...
C++
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_types/as-base-ffi.cpp
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
C/C++
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_types/as-base-ffi.h
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
Rust
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_types/build.rs
use std::path::Path; use std::path::PathBuf; use std::process::Command; fn main() { // Assume the hack workspace 'fbcode/hphp/hack/src/Cargo.toml'. let mut cargo_cmd = Command::new("cargo"); cargo_cmd.args(&["locate-project", "--workspace", "--message-format=plain"]); let output = cargo_cmd.output().un...
TOML
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_types/Cargo.toml
# @generated by autocargo [package] name = "hhvm_types_ffi" version = "0.0.0" edition = "2021" [lib] path = "hhvm_types_ffi.rs" crate-type = ["lib", "staticlib"] [dependencies] cxx = "1.0.100" oxidized = { version = "0.0.0", path = "../../../oxidized" } serde = { version = "1.0.176", features = ["derive", "rc"] } [...
Rust
hhvm/hphp/hack/src/hackc/hhvm_cxx/hhvm_types/hhvm_types_ffi.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::ops::BitAnd; use std::ops::BitAndAssign; use std::ops::BitOr; use std::ops::Sub; use std::ops::SubAssign; #[allow(unreachable_...
TOML
hhvm/hphp/hack/src/hackc/ir/Cargo.toml
# @generated by autocargo [package] name = "ir" version = "0.0.0" edition = "2021" [lib] path = "lib.rs" [dependencies] analysis = { version = "0.0.0", path = "analysis" } assemble_ir = { version = "0.0.0", path = "assemble" } ir_core = { version = "0.0.0", path = "ir_core" } passes = { version = "0.0.0", path = "pa...
Rust
hhvm/hphp/hack/src/hackc/ir/lib.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. pub use analysis; pub use assemble_ir as assemble; pub use ir_core::*; pub use passes; pub use print; pub use print::print_unit; #[cfg(t...
TOML
hhvm/hphp/hack/src/hackc/ir/analysis/Cargo.toml
# @generated by autocargo [package] name = "analysis" version = "0.0.0" edition = "2021" [lib] path = "lib.rs" [dependencies] ir_core = { version = "0.0.0", path = "../ir_core" } itertools = "0.10.3" newtype = { version = "0.0.0", path = "../../../utils/newtype" } print = { version = "0.0.0", path = "../print" }
Rust
hhvm/hphp/hack/src/hackc/ir/analysis/lib.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. pub mod liveness; pub mod predecessors; pub mod rpo; pub use liveness::LiveInstrs; pub use predecessors::compute_num_predecessors; pub ...
Rust
hhvm/hphp/hack/src/hackc/ir/analysis/liveness.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. // Everything you want to know about what InstrIds are alive when. use std::collections::VecDeque; use ir_core::instr::HasOperands; us...
Rust
hhvm/hphp/hack/src/hackc/ir/analysis/predecessors.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ir_core::BlockId; use ir_core::BlockIdMap; use ir_core::BlockIdSet; use ir_core::Func; use newtype::IdVec; pub type Predecessors = ...
Rust
hhvm/hphp/hack/src/hackc/ir/analysis/rpo.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ir_core::BlockId; use ir_core::Func; use newtype::IdVec; /// Compute the Block post-order for a Func. In the returned Vec a BlockId...
Rust
hhvm/hphp/hack/src/hackc/ir/assemble/assemble.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::io::Read; use std::path::Path; use std::sync::Arc; use anyhow::Context; use anyhow::Result; use bumpalo::Bump; use ir_core::Cl...
TOML
hhvm/hphp/hack/src/hackc/ir/assemble/Cargo.toml
# @generated by autocargo [package] name = "assemble_ir" version = "0.0.0" edition = "2021" [lib] path = "lib.rs" [dependencies] anyhow = "1.0.71" bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] } bumpalo = { version = "3.11.1", features = ["collections"] } ffi = { version = "0.0.0", path = "../.....
Rust
hhvm/hphp/hack/src/hackc/ir/assemble/class.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::sync::Arc; use anyhow::Context; use anyhow::Result; use bumpalo::Bump; use ffi::Str; use ir_core::class::Requirement; use ir_c...
Rust
hhvm/hphp/hack/src/hackc/ir/assemble/func.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::sync::Arc; use anyhow::anyhow; use anyhow::Context; use anyhow::Result; use bumpalo::Bump; use ffi::Str; use ir_core::func::Ex...
Rust
hhvm/hphp/hack/src/hackc/ir/assemble/lib.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. mod assemble; mod class; mod func; mod parse; mod tokenizer; mod util; pub use assemble::unit_from_path; pub use assemble::unit_from_st...
Rust
hhvm/hphp/hack/src/hackc/ir/assemble/parse.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::sync::Arc; use anyhow::Result; use bumpalo::Bump; use ffi::Str; use ir_core::func::DefaultValue; use ir_core::ArrayKey; use ir...
Rust
hhvm/hphp/hack/src/hackc/ir/assemble/parse_macro.rs
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #![feature(box_patterns)] use std::fmt; use proc_macro2::token_stream::IntoIter; use proc_macro2::Delimiter; use proc_macro2::Span; use proc_macro2::TokenStream; use proc_macro2::TokenTree; use quote::quote; use quote::ToTokens; type TokenIter ...