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

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

Issue 12398029: Remove the barely used macro assemblers after merging their contents to the base (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/deopt_instructions.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) 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/dart_entry.h" 5 #include "vm/dart_entry.h"
6 6
7 #include "vm/code_generator.h" 7 #include "vm/code_generator.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/object_store.h" 9 #include "vm/object_store.h"
10 #include "vm/resolver.h" 10 #include "vm/resolver.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if (!error.IsNull()) { 48 if (!error.IsNull()) {
49 return error.raw(); 49 return error.raw();
50 } 50 }
51 } 51 }
52 // Now Call the invoke stub which will invoke the dart function. 52 // Now Call the invoke stub which will invoke the dart function.
53 invokestub entrypoint = reinterpret_cast<invokestub>( 53 invokestub entrypoint = reinterpret_cast<invokestub>(
54 StubCode::InvokeDartCodeEntryPoint()); 54 StubCode::InvokeDartCodeEntryPoint());
55 const Code& code = Code::Handle(function.CurrentCode()); 55 const Code& code = Code::Handle(function.CurrentCode());
56 ASSERT(!code.IsNull()); 56 ASSERT(!code.IsNull());
57 ASSERT(Isolate::Current()->no_callback_scope_depth() == 0); 57 ASSERT(Isolate::Current()->no_callback_scope_depth() == 0);
58 #ifdef USING_SIMULATOR 58 #if defined(USING_SIMULATOR)
59 return bit_copy<RawObject*, int64_t>(Simulator::Current()->Call( 59 return bit_copy<RawObject*, int64_t>(Simulator::Current()->Call(
60 reinterpret_cast<int32_t>(entrypoint), 60 reinterpret_cast<int32_t>(entrypoint),
61 static_cast<int32_t>(code.EntryPoint()), 61 static_cast<int32_t>(code.EntryPoint()),
62 reinterpret_cast<int32_t>(&arguments_descriptor), 62 reinterpret_cast<int32_t>(&arguments_descriptor),
63 reinterpret_cast<int32_t>(&arguments), 63 reinterpret_cast<int32_t>(&arguments),
64 reinterpret_cast<int32_t>(&context), 64 reinterpret_cast<int32_t>(&context),
65 0)); 65 0));
66 #else 66 #else
67 return entrypoint(code.EntryPoint(), 67 return entrypoint(code.EntryPoint(),
68 arguments_descriptor, 68 arguments_descriptor,
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 String::Handle(Field::GetterName(Symbols::_id())))); 474 String::Handle(Field::GetterName(Symbols::_id()))));
475 const Function& func = Function::Handle(cls.LookupDynamicFunction(func_name)); 475 const Function& func = Function::Handle(cls.LookupDynamicFunction(func_name));
476 ASSERT(!func.IsNull()); 476 ASSERT(!func.IsNull());
477 const Array& args = Array::Handle(Array::New(1)); 477 const Array& args = Array::Handle(Array::New(1));
478 args.SetAt(0, port); 478 args.SetAt(0, port);
479 return DartEntry::InvokeFunction(func, args); 479 return DartEntry::InvokeFunction(func, args);
480 } 480 }
481 481
482 482
483 } // namespace dart 483 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698