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

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

Issue 2976723003: Eliminate dependencies on assemblers and code stubs in precompiled runtime. (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/runtime_entry.h" 5 #include "vm/runtime_entry.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2334 const Object& value = Object::Handle(arguments.ArgAt(1)); 2334 const Object& value = Object::Handle(arguments.ArgAt(1));
2335 field.RecordStore(value); 2335 field.RecordStore(value);
2336 } 2336 }
2337 2337
2338 2338
2339 DEFINE_RUNTIME_ENTRY(InitStaticField, 1) { 2339 DEFINE_RUNTIME_ENTRY(InitStaticField, 1) {
2340 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 2340 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
2341 field.EvaluateInitializer(); 2341 field.EvaluateInitializer();
2342 } 2342 }
2343 2343
2344
2345 // Print the stop message.
2346 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) {
2347 OS::Print("Stop message: %s\n", message);
2348 }
2349 END_LEAF_RUNTIME_ENTRY
2350
2351
2344 // Use expected function signatures to help MSVC compiler resolve overloading. 2352 // Use expected function signatures to help MSVC compiler resolve overloading.
2345 typedef double (*UnaryMathCFunction)(double x); 2353 typedef double (*UnaryMathCFunction)(double x);
2346 typedef double (*BinaryMathCFunction)(double x, double y); 2354 typedef double (*BinaryMathCFunction)(double x, double y);
2347 2355
2348 DEFINE_RAW_LEAF_RUNTIME_ENTRY( 2356 DEFINE_RAW_LEAF_RUNTIME_ENTRY(
2349 LibcPow, 2357 LibcPow,
2350 2, 2358 2,
2351 true /* is_float */, 2359 true /* is_float */,
2352 reinterpret_cast<RuntimeFunction>(static_cast<BinaryMathCFunction>(&pow))); 2360 reinterpret_cast<RuntimeFunction>(static_cast<BinaryMathCFunction>(&pow)));
2353 2361
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
2419 true /* is_float */, 2427 true /* is_float */,
2420 reinterpret_cast<RuntimeFunction>(static_cast<UnaryMathCFunction>(&tan))); 2428 reinterpret_cast<RuntimeFunction>(static_cast<UnaryMathCFunction>(&tan)));
2421 2429
2422 DEFINE_RAW_LEAF_RUNTIME_ENTRY( 2430 DEFINE_RAW_LEAF_RUNTIME_ENTRY(
2423 LibcAtan, 2431 LibcAtan,
2424 1, 2432 1,
2425 true /* is_float */, 2433 true /* is_float */,
2426 reinterpret_cast<RuntimeFunction>(static_cast<UnaryMathCFunction>(&atan))); 2434 reinterpret_cast<RuntimeFunction>(static_cast<UnaryMathCFunction>(&atan)));
2427 2435
2428 } // namespace dart 2436 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698