Home
last modified time | relevance | path

Searched refs:Code (Results 1 – 25 of 1357) sorted by relevance

12345678910>>...55

/external/clang/unittests/Format/
DCleanupTest.cpp23 std::string cleanup(llvm::StringRef Code, in cleanup() argument
26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup()
28 auto Result = applyAllReplacements(Code, Replaces); in cleanup()
35 std::string Code = "namespace A {\n" in TEST_F() local
50 std::string Result = cleanup(Code, Ranges); in TEST_F()
55 std::string Code = "namespace A {\n" in TEST_F() local
66 std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size())); in TEST_F()
67 std::string Result = cleanup(Code, Ranges); in TEST_F()
72 std::string Code = "namespace A {\n\n" in TEST_F() local
80 std::string Result = cleanup(Code, Ranges); in TEST_F()
[all …]
DSortIncludesTest.cpp23 std::vector<tooling::Range> GetCodeRange(StringRef Code) { in GetCodeRange() argument
24 return std::vector<tooling::Range>(1, tooling::Range(0, Code.size())); in GetCodeRange()
27 std::string sort(StringRef Code, StringRef FileName = "input.cpp") { in sort() argument
28 auto Ranges = GetCodeRange(Code); in sort()
30 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); in sort()
38 unsigned newCursor(llvm::StringRef Code, unsigned Cursor) { in newCursor() argument
39 sortIncludes(Style, Code, GetCodeRange(Code), "input.cpp", &Cursor); in newCursor()
58 std::string Code = "#include <a>\n" in TEST_F() local
64 EXPECT_TRUE(sortIncludes(Style, Code, GetCodeRange(Code), "a.cc").empty()); in TEST_F()
277 std::string Code = "#include <ccc>\n" // Start of line: 0 in TEST_F() local
[all …]
DFormatTestProto.cpp22 static std::string format(llvm::StringRef Code, unsigned Offset, in format() argument
25 DEBUG(llvm::errs() << Code << "\n\n"); in format()
27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
28 auto Result = applyAllReplacements(Code, Replaces); in format()
34 static std::string format(llvm::StringRef Code) { in format() argument
37 return format(Code, 0, Code.size(), Style); in format()
40 static void verifyFormat(llvm::StringRef Code) { in verifyFormat() argument
41 EXPECT_EQ(Code.str(), format(test::messUp(Code))); in verifyFormat()
/external/clang/lib/ASTMatchers/Dynamic/
DParser.cpp61 : Code(MatcherCode), StartOfLine(MatcherCode), Line(1), Error(Error), in CodeTokenizer()
68 : Code(MatcherCode), StartOfLine(MatcherCode), Line(1), Error(Error), in CodeTokenizer()
91 if (CodeCompletionLocation && CodeCompletionLocation <= Code.data()) { in getNextToken()
98 if (Code.empty()) { in getNextToken()
104 switch (Code[0]) { in getNextToken()
107 Result.Text = Code.substr(0, 1); in getNextToken()
108 Code = Code.drop_front(); in getNextToken()
112 Result.Text = Code.substr(0, 1); in getNextToken()
113 Code = Code.drop_front(); in getNextToken()
117 Result.Text = Code.substr(0, 1); in getNextToken()
[all …]
/external/v8/src/ic/
Daccess-compiler.cc12 Handle<Code> PropertyAccessCompiler::GetCodeWithFlags(Code::Flags flags, in GetCodeWithFlags()
17 Handle<Code> code = factory()->NewCode(desc, flags, masm()->CodeObject()); in GetCodeWithFlags()
30 Handle<Code> PropertyAccessCompiler::GetCodeWithFlags(Code::Flags flags, in GetCodeWithFlags()
41 Handle<Code> code(masm->isolate()->builtins()->builtin(name)); in TailCallBuiltin()
46 Code::Kind kind) { in GetCallingConvention()
51 if (kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC) { in GetCallingConvention()
54 DCHECK(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC); in GetCallingConvention()
60 if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { in slot()
63 DCHECK(kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC); in slot()
69 if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { in vector()
[all …]
Daccess-compiler.h18 static Builtins::Name MissBuiltin(Code::Kind kind) { in MissBuiltin()
20 case Code::LOAD_IC: in MissBuiltin()
22 case Code::STORE_IC: in MissBuiltin()
24 case Code::KEYED_LOAD_IC: in MissBuiltin()
26 case Code::KEYED_STORE_IC: in MissBuiltin()
37 PropertyAccessCompiler(Isolate* isolate, Code::Kind kind, in PropertyAccessCompiler()
48 Code::Kind kind() const { return kind_; } in kind()
64 static void GenerateTailCall(MacroAssembler* masm, Handle<Code> code);
66 Handle<Code> GetCodeWithFlags(Code::Flags flags, const char* name);
67 Handle<Code> GetCodeWithFlags(Code::Flags flags, Handle<Name> name);
[all …]
Dhandler-compiler.h20 static Handle<Code> Find(Handle<Name> name, Handle<Map> map, Code::Kind kind,
24 PropertyHandlerCompiler(Isolate* isolate, Code::Kind kind, Handle<Map> map, in PropertyHandlerCompiler()
110 Handle<Code> GetCode(Code::Kind kind, Handle<Name> name);
127 : PropertyHandlerCompiler(isolate, Code::LOAD_IC, map, holder, in NamedLoadHandlerCompiler()
132 Handle<Code> CompileLoadCallback(Handle<Name> name,
134 Handle<Code> slow_stub);
136 Handle<Code> CompileLoadCallback(Handle<Name> name,
138 int accessor_index, Handle<Code> slow_stub);
143 Handle<Code> CompileLoadInterceptor(LookupIterator* it);
145 Handle<Code> CompileLoadViaGetter(Handle<Name> name, int accessor_index,
[all …]
Dic.h65 static bool ICUseVector(Code::Kind kind) { in ICUseVector()
66 return kind == Code::LOAD_IC || kind == Code::LOAD_GLOBAL_IC || in ICUseVector()
67 kind == Code::KEYED_LOAD_IC || kind == Code::STORE_IC || in ICUseVector()
68 kind == Code::KEYED_STORE_IC; in ICUseVector()
78 static bool ShouldPushPopSlotAndVector(Code::Kind kind);
80 static InlineCacheState StateFromCode(Code* code);
104 inline void set_target(Code* code);
138 static inline Code* GetTargetAtAddress(Address address,
140 static inline void SetTargetAtAddress(Address address, Code* target,
142 static void PostPatching(Address address, Code* target, Code* old_target);
[all …]
Dic-inl.h43 Code* IC::GetTargetAtAddress(Address address, Address constant_pool) { in GetTargetAtAddress()
48 Code* result = Code::GetCodeFromTargetAddress(target); in GetTargetAtAddress()
57 void IC::SetTargetAtAddress(Address address, Code* target, in SetTargetAtAddress()
66 Code* old_target = GetTargetAtAddress(address, constant_pool); in SetTargetAtAddress()
79 void IC::set_target(Code* code) { in set_target()
83 Code* IC::target() const { in target()
90 (object->IsCode() && Code::cast(object)->is_handler()); in IsHandler()
133 Code* host = in AddressIsDeoptimizedCode()
135 return (host->kind() == Code::OPTIMIZED_FUNCTION && in AddressIsDeoptimizedCode()
Dstub-cache.cc17 StubCache::StubCache(Isolate* isolate, Code::Kind ic_kind) in StubCache()
44 Code* code = Code::cast(handler); in CommonStubCacheChecks()
45 Code::Flags expected_flags = Code::RemoveHolderFromFlags( in CommonStubCacheChecks()
46 Code::ComputeHandlerFlags(stub_cache->ic_kind())); in CommonStubCacheChecks()
47 Code::Flags flags = Code::RemoveHolderFromFlags(code->flags()); in CommonStubCacheChecks()
49 DCHECK_EQ(Code::HANDLER, Code::ExtractKindFromFlags(code->flags())); in CommonStubCacheChecks()
101 Code* empty = isolate_->builtins()->builtin(Builtins::kIllegal); in Clear()
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.h63 const std::string &Code, const T &AMatcher, bool ExpectMatch,
87 Factory->create(), Code, Args, Filename, "clang-tool",
89 return testing::AssertionFailure() << "Parsing error in \"" << Code << "\"";
99 << "Could not find match in \"" << Code << "\"";
102 << "Found unexpected match in \"" << Code << "\"";
108 testing::AssertionResult matches(const std::string &Code, const T &AMatcher) { in matches() argument
109 return matchesConditionally(Code, AMatcher, true, "-std=c++11"); in matches()
113 testing::AssertionResult notMatches(const std::string &Code, in notMatches() argument
115 return matchesConditionally(Code, AMatcher, false, "-std=c++11"); in notMatches()
119 testing::AssertionResult matchesObjC(const std::string &Code, in matchesObjC() argument
[all …]
/external/bison/m4/
Dgnulib-comp.m442 # Code from module alloca-opt:
43 # Code from module announce-gen:
44 # Code from module argmatch:
45 # Code from module assert:
46 # Code from module binary-io:
47 # Code from module bitrotate:
48 # Code from module c-ctype:
49 # Code from module c-strcase:
50 # Code from module c-strcaseeq:
51 # Code from module calloc-posix:
[all …]
/external/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp22 void expectRewritten(const std::string &Code, in expectRewritten() argument
30 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), Code)) in expectRewritten()
31 << "Parsing error in \"" << Code << "\""; in expectRewritten()
33 FileID ID = Context.createInMemoryFile("input.cc", Code); in expectRewritten()
40 std::string Code = "void f() { int i = 1; }"; in TEST() local
43 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
47 std::string Code = "#define A void f() { int i = 1; }\nA"; in TEST() local
50 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
54 std::string Code = "#define A void f() { int i = 1; }"; in TEST() local
57 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
[all …]
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DDecoder.java13 int Code; field in Decoder
29 Code = 0; in Init()
32 Code = (Code << 8) | Stream.read(); in Init()
41 int t = ((Code - Range) >>> 31); in DecodeDirectBits()
42 Code -= Range & (t - 1); in DecodeDirectBits()
47 Code = (Code << 8) | Stream.read(); in DecodeDirectBits()
58 if ((Code ^ 0x80000000) < (newBound ^ 0x80000000)) in DecodeBit()
64 Code = (Code << 8) | Stream.read(); in DecodeBit()
72 Code -= newBound; in DecodeBit()
76 Code = (Code << 8) | Stream.read(); in DecodeBit()
/external/v8/src/builtins/
Dbuiltins.cc30 void PostBuildProfileAndTracing(Isolate* isolate, Code* code, in PostBuildProfileAndTracing()
48 Code* BuildWithMacroAssembler(Isolate* isolate, in BuildWithMacroAssembler()
50 Code::Flags flags, const char* s_name) { in BuildWithMacroAssembler()
59 Handle<Code> code = in BuildWithMacroAssembler()
65 Code* BuildAdaptor(Isolate* isolate, Address builtin_address, in BuildAdaptor()
66 Builtins::ExitFrameType exit_frame_type, Code::Flags flags, in BuildAdaptor()
76 Handle<Code> code = in BuildAdaptor()
83 Code* BuildWithCodeStubAssemblerJS(Isolate* isolate, in BuildWithCodeStubAssemblerJS()
85 Code::Flags flags, const char* name) { in BuildWithCodeStubAssemblerJS()
93 Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state); in BuildWithCodeStubAssemblerJS()
[all …]
/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoder.cs126 public uint Code; field in SevenZip.Compression.RangeCoder.Decoder
135 Code = 0; in Init()
138 Code = (Code << 8) | (byte)Stream.ReadByte(); in Init()
156 Code = (Code << 8) | (byte)Stream.ReadByte(); in Normalize()
165 Code = (Code << 8) | (byte)Stream.ReadByte(); in Normalize2()
172 return Code / (Range /= total); in GetThreshold()
177 Code -= start * Range; in Decode()
185 uint code = Code; in DecodeDirectBits()
209 Code = code; in DecodeDirectBits()
217 if (Code < newBound) in DecodeBit()
[all …]
/external/v8/src/wasm/
Dwasm-code-specialization.cc43 PatchDirectCallsHelper(WasmInstanceObject* instance, Code* code) in PatchDirectCallsHelper()
125 Code* wasm_function = Code::cast(code_table->get(func_index)); in ApplyToWholeInstance()
132 Code* export_wrapper = Code::cast(code_table->get(func_index)); in ApplyToWholeInstance()
133 DCHECK_EQ(Code::JS_TO_WASM_FUNCTION, export_wrapper->kind()); in ApplyToWholeInstance()
140 Code* code = Code::GetCodeFromTargetAddress(it.rinfo()->target_address()); in ApplyToWholeInstance()
142 if (code->kind() != Code::WASM_FUNCTION && in ApplyToWholeInstance()
143 code->kind() != Code::WASM_TO_JS_FUNCTION && in ApplyToWholeInstance()
147 Code* new_code = Code::cast(code_table->get(exp.index)); in ApplyToWholeInstance()
148 DCHECK(new_code->kind() == Code::WASM_FUNCTION || in ApplyToWholeInstance()
149 new_code->kind() == Code::WASM_TO_JS_FUNCTION); in ApplyToWholeInstance()
[all …]
/external/clang/lib/Serialization/
DASTWriterStmt.cpp35 serialization::StmtCode Code; member in clang::ASTStmtWriter
41 Code(serialization::STMT_NULL_PTR), AbbrevToUse(0) {} in ASTStmtWriter()
46 assert(Code != serialization::STMT_NULL_PTR && in Emit()
48 return Record.EmitStmt(Code, AbbrevToUse); in Emit()
77 Code = serialization::STMT_NULL; in VisitNullStmt()
87 Code = serialization::STMT_COMPOUND; in VisitCompoundStmt()
103 Code = serialization::STMT_CASE; in VisitCaseStmt()
109 Code = serialization::STMT_DEFAULT; in VisitDefaultStmt()
117 Code = serialization::STMT_LABEL; in VisitLabelStmt()
126 Code = serialization::STMT_ATTRIBUTED; in VisitAttributedStmt()
[all …]
/external/v8/src/
Dcompilation-info.cc58 : CompilationInfo(parse_info, {}, Code::ComputeFlags(Code::FUNCTION), BASE, in CompilationInfo()
83 Code::Flags code_flags) in CompilationInfo()
88 Code::Flags code_flags, Mode mode, in CompilationInfo()
100 prologue_offset_(Code::kPrologueOffsetNotSet), in CompilationInfo()
173 case Code::STUB: in GetOutputStackFrameType()
174 case Code::BYTECODE_HANDLER: in GetOutputStackFrameType()
175 case Code::HANDLER: in GetOutputStackFrameType()
176 case Code::BUILTIN: in GetOutputStackFrameType()
177 #define CASE_KIND(kind) case Code::kind: in GetOutputStackFrameType()
181 case Code::WASM_FUNCTION: in GetOutputStackFrameType()
[all …]
Dcode-stubs.h177 Handle<Code> GetCode();
180 Handle<Code> GetCodeCopy(const FindAndReplacePattern& pattern);
190 static Major GetMajorKey(Code* code_stub) { in GetMajorKey()
213 bool FindCodeInCache(Code** code_out);
226 static MaybeHandle<Code> GetCode(Isolate* isolate, uint32_t key);
233 virtual Code::Kind GetCodeKind() const;
237 Code::Flags GetCodeFlags() const;
253 virtual Handle<Code> GenerateCode() = 0;
274 void RecordCodeGeneration(Handle<Code> code);
277 virtual void FinishCode(Handle<Code> code) { } in FinishCode()
[all …]
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/JIT/
DJITEventListenerTest.cpp35 void *Code; member
41 void *Code; member
53 void *Code, size_t Size, in NotifyFunctionEmitted()
55 FunctionEmittedEvent Event = {NextIndex++, &F, Code, Size, Details}; in NotifyFunctionEmitted()
106 EXPECT_EQ(F1_addr, Listener.EmittedEvents[0].Code); in TEST_F()
113 EXPECT_EQ(F2_addr, Listener.EmittedEvents[1].Code); in TEST_F()
119 EXPECT_EQ(F1_addr, Listener.FreedEvents[0].Code); in TEST_F()
122 EXPECT_EQ(F2_addr, Listener.FreedEvents[1].Code); in TEST_F()
159 EXPECT_EQ(F1_addr, Listener1.EmittedEvents[0].Code); in TEST_F()
165 EXPECT_EQ(F2_addr, Listener1.FreedEvents[0].Code); in TEST_F()
[all …]
/external/clang/unittests/AST/
DStmtPrinterTest.cpp70 PrintedStmtMatches(StringRef Code, const std::vector<std::string> &Args, in PrintedStmtMatches() argument
79 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args)) in PrintedStmtMatches()
81 << "Parsing error in \"" << Code.str() << "\""; in PrintedStmtMatches()
101 PrintedStmtCXX98Matches(StringRef Code, const StatementMatcher &NodeMatch, in PrintedStmtCXX98Matches() argument
106 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX98Matches()
110 StringRef Code, in PrintedStmtCXX98Matches() argument
116 return PrintedStmtMatches(Code, in PrintedStmtCXX98Matches()
124 PrintedStmtCXX11Matches(StringRef Code, const StatementMatcher &NodeMatch, in PrintedStmtCXX11Matches() argument
129 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX11Matches()
133 StringRef Code, in PrintedStmtMSMatches() argument
[all …]
DDeclPrinterTest.cpp69 StringRef Code, in PrintedDeclMatches() argument
80 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args, FileName)) in PrintedDeclMatches()
82 << "Parsing error in \"" << Code.str() << "\""; in PrintedDeclMatches()
101 ::testing::AssertionResult PrintedDeclCXX98Matches(StringRef Code, in PrintedDeclCXX98Matches() argument
105 return PrintedDeclMatches(Code, in PrintedDeclCXX98Matches()
113 StringRef Code, in PrintedDeclCXX98Matches() argument
117 return PrintedDeclMatches(Code, in PrintedDeclCXX98Matches()
124 ::testing::AssertionResult PrintedDeclCXX11Matches(StringRef Code, in PrintedDeclCXX11Matches() argument
128 return PrintedDeclMatches(Code, in PrintedDeclCXX11Matches()
136 StringRef Code, in PrintedDeclCXX11Matches() argument
[all …]
/external/clang/lib/Frontend/
DTestModuleFileExtension.cpp87 llvm::hash_code Code) const { in hashExtension()
89 Code = llvm::hash_combine(Code, BlockName); in hashExtension()
90 Code = llvm::hash_combine(Code, MajorVersion); in hashExtension()
91 Code = llvm::hash_combine(Code, MinorVersion); in hashExtension()
92 Code = llvm::hash_combine(Code, UserInfo); in hashExtension()
95 return Code; in hashExtension()
/external/ltp/doc/
Dltp-howto.lyx129 important) testing techniques in its normal operations: Design and Code
309 \layout Code
314 \layout Code
320 \layout Code
326 \layout Code
331 \layout Code
336 \layout Code
341 \layout Code
346 \layout Code
351 \layout Code
[all …]

12345678910>>...55