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

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

Issue 10825282: Put PushArgument into the environment instead of raw values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: revert changes in deopt instructions Created 8 years, 4 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 | runtime/vm/flow_graph_allocator.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/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 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 + num_args; 1541 + num_args;
1542 DeoptimizationContext deopt_context(start, 1542 DeoptimizationContext deopt_context(start,
1543 to_frame_size, 1543 to_frame_size,
1544 Array::Handle(code.object_table()), 1544 Array::Handle(code.object_table()),
1545 num_args); 1545 num_args);
1546 for (intptr_t to_index = 0; to_index < len; to_index++) { 1546 for (intptr_t to_index = 0; to_index < len; to_index++) {
1547 deopt_instructions[to_index]->Execute(&deopt_context, to_index); 1547 deopt_instructions[to_index]->Execute(&deopt_context, to_index);
1548 } 1548 }
1549 if (FLAG_trace_deopt) { 1549 if (FLAG_trace_deopt) {
1550 for (intptr_t i = 0; i < len; i++) { 1550 for (intptr_t i = 0; i < len; i++) {
1551 OS::Print("*%d. 0x%x [%s]\n", 1551 OS::Print("*%d. [0x%0" PRIxPTR "] 0x%012" PRIxPTR " [%s]\n",
1552 i, start[i], deopt_instructions[i]->ToCString()); 1552 i,
1553 &start[i],
1554 start[i],
1555 deopt_instructions[i]->ToCString());
1553 } 1556 }
1554 } 1557 }
1555 } 1558 }
1556 1559
1557 1560
1558 // The stack has been adjusted to fit all values for unoptimized frame. 1561 // The stack has been adjusted to fit all values for unoptimized frame.
1559 // Fill the unoptimized frame. 1562 // Fill the unoptimized frame.
1560 DEFINE_LEAF_RUNTIME_ENTRY(void, DeoptimizeFillFrame, uword last_fp) { 1563 DEFINE_LEAF_RUNTIME_ENTRY(void, DeoptimizeFillFrame, uword last_fp) {
1561 Isolate* isolate = Isolate::Current(); 1564 Isolate* isolate = Isolate::Current();
1562 Zone zone(isolate); 1565 Zone zone(isolate);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 } 1714 }
1712 } 1715 }
1713 } 1716 }
1714 // The cache is null terminated, therefore the loop above should never 1717 // The cache is null terminated, therefore the loop above should never
1715 // terminate by itself. 1718 // terminate by itself.
1716 UNREACHABLE(); 1719 UNREACHABLE();
1717 return Code::null(); 1720 return Code::null();
1718 } 1721 }
1719 1722
1720 } // namespace dart 1723 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698