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

Side by Side Diff: vm/code_generator.cc

Issue 10592006: Rework leaf calls as just simple C calls with a signature and not the NativeArgumentDescriptor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | « vm/assembler_x64.cc ('k') | vm/runtime_entry.h » ('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/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler_macros.h" 7 #include "vm/assembler_macros.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 } 1577 }
1578 } 1578 }
1579 // The cache is null terminated, therefore the loop above should never 1579 // The cache is null terminated, therefore the loop above should never
1580 // terminate by itself. 1580 // terminate by itself.
1581 UNREACHABLE(); 1581 UNREACHABLE();
1582 return Code::null(); 1582 return Code::null();
1583 } 1583 }
1584 1584
1585 1585
1586 // Adds a pointer to the store buffer. 1586 // Adds a pointer to the store buffer.
1587 // Arg0: the address of a field being stored into 1587 // ptr: the address of a field being stored into.
1588 DEFINE_LEAF_RUNTIME_ENTRY(StoreBuffer, 1) { 1588 DEFINE_LEAF_RUNTIME_ENTRY(void, StoreBuffer, uword ptr) {
1589 ASSERT(args.Count() == kStoreBufferRuntimeEntry.argument_count()); 1589 Isolate::Current()->store_buffer()->AddPointer(ptr);
1590 uword ptr = reinterpret_cast<uword>(args.At(0));
1591 isolate->store_buffer()->AddPointer(ptr);
1592 return Smi::New(0); // Just an arbitrary RawObject* value.
1593 } 1590 }
1591 END_LEAF_RUNTIME_ENTRY
1594 1592
1595 } // namespace dart 1593 } // namespace dart
OLDNEW
« no previous file with comments | « vm/assembler_x64.cc ('k') | vm/runtime_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698