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

Side by Side Diff: vm/intermediate_language.cc

Issue 10409043: Make saving and restoring of the context around closure calls explicit. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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/intermediate_language.h ('k') | vm/parser.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) 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return ArgumentCount(); 74 return ArgumentCount();
75 } 75 }
76 76
77 77
78 intptr_t StaticCallComp::InputCount() const { 78 intptr_t StaticCallComp::InputCount() const {
79 return ArgumentCount(); 79 return ArgumentCount();
80 } 80 }
81 81
82 82
83 intptr_t ClosureCallComp::InputCount() const { 83 intptr_t ClosureCallComp::InputCount() const {
84 // Context and arguments. 84 return ArgumentCount();
85 return 1 + ArgumentCount();
86 } 85 }
87 86
88 87
89 intptr_t AllocateObjectComp::InputCount() const { 88 intptr_t AllocateObjectComp::InputCount() const {
90 return arguments().length(); 89 return arguments().length();
91 } 90 }
92 91
93 92
94 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const { 93 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const {
95 return arguments().length(); 94 return arguments().length();
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 } 547 }
549 548
550 549
551 RawAbstractType* CatchEntryComp::StaticType() const { 550 RawAbstractType* CatchEntryComp::StaticType() const {
552 UNREACHABLE(); 551 UNREACHABLE();
553 return AbstractType::null(); 552 return AbstractType::null();
554 } 553 }
555 554
556 555
557 } // namespace dart 556 } // namespace dart
OLDNEW
« no previous file with comments | « vm/intermediate_language.h ('k') | vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698