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

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

Issue 23672011: Fix the previously ineffective assert checking the number of arguments passed to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/assembler_x64.h ('k') | runtime/vm/flow_graph_compiler.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 2354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 2365
2366 // Restore volatile CPU registers. 2366 // Restore volatile CPU registers.
2367 for (intptr_t i = kNumberOfVolatileCpuRegisters - 1; i >= 0; i--) { 2367 for (intptr_t i = kNumberOfVolatileCpuRegisters - 1; i >= 0; i--) {
2368 popq(volatile_cpu_registers[i]); 2368 popq(volatile_cpu_registers[i]);
2369 } 2369 }
2370 2370
2371 leave(); 2371 leave();
2372 } 2372 }
2373 2373
2374 2374
2375 void Assembler::CallRuntime(const RuntimeEntry& entry) { 2375 void Assembler::CallRuntime(const RuntimeEntry& entry,
2376 entry.Call(this); 2376 intptr_t argument_count) {
2377 entry.Call(this, argument_count);
2377 } 2378 }
2378 2379
2379 2380
2380 void Assembler::EnterDartFrame(intptr_t frame_size) { 2381 void Assembler::EnterDartFrame(intptr_t frame_size) {
2381 EnterFrame(0); 2382 EnterFrame(0);
2382 Label dart_entry; 2383 Label dart_entry;
2383 call(&dart_entry); 2384 call(&dart_entry);
2384 Bind(&dart_entry); 2385 Bind(&dart_entry);
2385 // The runtime system assumes that the code marker address is 2386 // The runtime system assumes that the code marker address is
2386 // kEntryPointToPcMarkerOffset bytes from the entry. If there is any code 2387 // kEntryPointToPcMarkerOffset bytes from the entry. If there is any code
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2643 2644
2644 const char* Assembler::FpuRegisterName(FpuRegister reg) { 2645 const char* Assembler::FpuRegisterName(FpuRegister reg) {
2645 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2646 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2646 return xmm_reg_names[reg]; 2647 return xmm_reg_names[reg];
2647 } 2648 }
2648 2649
2649 2650
2650 } // namespace dart 2651 } // namespace dart
2651 2652
2652 #endif // defined TARGET_ARCH_X64 2653 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698