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/unit_test.cc

Issue 10115053: Assign ids to incoming arguments (to be used in checked mode). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | 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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include "vm/unit_test.h" 7 #include "vm/unit_test.h"
8 8
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 functions.SetAt(0, function_); 141 functions.SetAt(0, function_);
142 cls.SetFunctions(functions); 142 cls.SetFunctions(functions);
143 Library& lib = Library::Handle(Library::CoreLibrary()); 143 Library& lib = Library::Handle(Library::CoreLibrary());
144 lib.AddClass(cls); 144 lib.AddClass(cls);
145 } 145 }
146 146
147 147
148 void CodeGenTest::Compile() { 148 void CodeGenTest::Compile() {
149 Assembler assembler; 149 Assembler assembler;
150 ParsedFunction parsed_function(function_); 150 ParsedFunction parsed_function(function_);
151 parsed_function.set_node_sequence(node_sequence_); 151 parsed_function.SetNodeSequence(node_sequence_);
152 parsed_function.set_instantiator(NULL); 152 parsed_function.set_instantiator(NULL);
153 parsed_function.set_default_parameter_values(default_parameter_values_); 153 parsed_function.set_default_parameter_values(default_parameter_values_);
154 parsed_function.AllocateVariables(); 154 parsed_function.AllocateVariables();
155 bool retval; 155 bool retval;
156 Isolate* isolate = Isolate::Current(); 156 Isolate* isolate = Isolate::Current();
157 EXPECT(isolate != NULL); 157 EXPECT(isolate != NULL);
158 LongJump* base = isolate->long_jump_base(); 158 LongJump* base = isolate->long_jump_base();
159 LongJump jump; 159 LongJump jump;
160 isolate->set_long_jump_base(&jump); 160 isolate->set_long_jump_base(&jump);
161 if (setjmp(*jump.Set()) == 0) { 161 if (setjmp(*jump.Set()) == 0) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 bool CompilerTest::TestCompileFunction(const Function& function) { 194 bool CompilerTest::TestCompileFunction(const Function& function) {
195 Isolate* isolate = Isolate::Current(); 195 Isolate* isolate = Isolate::Current();
196 ASSERT(isolate != NULL); 196 ASSERT(isolate != NULL);
197 ASSERT(ClassFinalizer::AllClassesFinalized()); 197 ASSERT(ClassFinalizer::AllClassesFinalized());
198 const Error& error = Error::Handle(Compiler::CompileFunction(function)); 198 const Error& error = Error::Handle(Compiler::CompileFunction(function));
199 return error.IsNull(); 199 return error.IsNull();
200 } 200 }
201 201
202 } // namespace dart 202 } // namespace dart
OLDNEW
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698