Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Side by Side Diff: runtime/vm/compiler.cc

Issue 1870343002: - Refactor Symbol allocation to expect a thread parameter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review feedback. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/code_patcher_x64_test.cc ('k') | runtime/vm/compiler_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 if (FLAG_support_ast_printer) { 1494 if (FLAG_support_ast_printer) {
1495 AstPrinter::PrintNode(fragment); 1495 AstPrinter::PrintNode(fragment);
1496 } 1496 }
1497 } 1497 }
1498 1498
1499 // Create a dummy function object for the code generator. 1499 // Create a dummy function object for the code generator.
1500 // The function needs to be associated with a named Class: the interface 1500 // The function needs to be associated with a named Class: the interface
1501 // Function fits the bill. 1501 // Function fits the bill.
1502 const char* kEvalConst = "eval_const"; 1502 const char* kEvalConst = "eval_const";
1503 const Function& func = Function::ZoneHandle(Function::New( 1503 const Function& func = Function::ZoneHandle(Function::New(
1504 String::Handle(Symbols::New(kEvalConst)), 1504 String::Handle(Symbols::New(thread, kEvalConst)),
1505 RawFunction::kRegularFunction, 1505 RawFunction::kRegularFunction,
1506 true, // static function 1506 true, // static function
1507 false, // not const function 1507 false, // not const function
1508 false, // not abstract 1508 false, // not abstract
1509 false, // not external 1509 false, // not external
1510 false, // not native 1510 false, // not native
1511 Class::Handle(Type::Handle(Type::DartFunctionType()).type_class()), 1511 Class::Handle(Type::Handle(Type::DartFunctionType()).type_class()),
1512 fragment->token_pos())); 1512 fragment->token_pos()));
1513 1513
1514 func.set_result_type(Object::dynamic_type()); 1514 func.set_result_type(Object::dynamic_type());
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 } 1957 }
1958 1958
1959 1959
1960 void BackgroundCompiler::EnsureInit(Thread* thread) { 1960 void BackgroundCompiler::EnsureInit(Thread* thread) {
1961 UNREACHABLE(); 1961 UNREACHABLE();
1962 } 1962 }
1963 1963
1964 #endif // DART_PRECOMPILED_RUNTIME 1964 #endif // DART_PRECOMPILED_RUNTIME
1965 1965
1966 } // namespace dart 1966 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher_x64_test.cc ('k') | runtime/vm/compiler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698