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

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

Issue 9689068: Fix build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « no previous file | no next file » | 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/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/code_generator.h" 8 #include "vm/code_generator.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 const Immediate raw_null = 536 const Immediate raw_null =
537 Immediate(reinterpret_cast<intptr_t>(Object::null())); 537 Immediate(reinterpret_cast<intptr_t>(Object::null()));
538 const Function& function = parsed_function_.function(); 538 const Function& function = parsed_function_.function();
539 539
540 // 1. Compute the frame size and enter the frame (reserving local space 540 // 1. Compute the frame size and enter the frame (reserving local space
541 // for copied incoming and default arguments and stack-allocated local 541 // for copied incoming and default arguments and stack-allocated local
542 // variables). 542 // variables).
543 // 543 //
544 // TODO(regis): We may give up reserving space on stack for args/locals 544 // TODO(regis): We may give up reserving space on stack for args/locals
545 // because pushes of initial values may be more effective than moves. 545 // because pushes of initial values may be more effective than moves.
546 LocalScope* scope = parsed_function_.node_sequence()->scope();
547 const int num_fixed_params = function.num_fixed_parameters(); 546 const int num_fixed_params = function.num_fixed_parameters();
548 const int num_opt_params = function.num_optional_parameters(); 547 const int num_opt_params = function.num_optional_parameters();
549 const int num_copied_params = parsed_function_.copied_parameter_count(); 548 const int num_copied_params = parsed_function_.copied_parameter_count();
550 const int stack_slot_count = 549 const int stack_slot_count =
551 num_copied_params + parsed_function_.stack_local_count(); 550 num_copied_params + parsed_function_.stack_local_count();
552 set_locals_space_size(stack_slot_count * kWordSize); 551 set_locals_space_size(stack_slot_count * kWordSize);
553 __ EnterFrame(locals_space_size()); 552 __ EnterFrame(locals_space_size());
554 553
555 // 2. Optionally check if the number of arguments matches. We check the 554 // 2. Optionally check if the number of arguments matches. We check the
556 // number of passed arguments when we have to copy them due to the 555 // number of passed arguments when we have to copy them due to the
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 const Error& error = Error::Handle( 2661 const Error& error = Error::Handle(
2663 Parser::FormatError(script, token_index, "Error", format, args)); 2662 Parser::FormatError(script, token_index, "Error", format, args));
2664 va_end(args); 2663 va_end(args);
2665 Isolate::Current()->long_jump_base()->Jump(1, error); 2664 Isolate::Current()->long_jump_base()->Jump(1, error);
2666 UNREACHABLE(); 2665 UNREACHABLE();
2667 } 2666 }
2668 2667
2669 } // namespace dart 2668 } // namespace dart
2670 2669
2671 #endif // defined TARGET_ARCH_X64 2670 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698