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

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

Issue 259903002: Enables all codegen tests for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
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/unit_test.h" 5 #include "vm/unit_test.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "bin/builtin.h" 9 #include "bin/builtin.h"
10 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 parsed_function->set_default_parameter_values(default_parameter_values_); 199 parsed_function->set_default_parameter_values(default_parameter_values_);
200 parsed_function->EnsureExpressionTemp(); 200 parsed_function->EnsureExpressionTemp();
201 node_sequence_->scope()->AddVariable(parsed_function->expression_temp_var()); 201 node_sequence_->scope()->AddVariable(parsed_function->expression_temp_var());
202 parsed_function->AllocateVariables(); 202 parsed_function->AllocateVariables();
203 const Error& error = 203 const Error& error =
204 Error::Handle(Compiler::CompileParsedFunction(parsed_function)); 204 Error::Handle(Compiler::CompileParsedFunction(parsed_function));
205 EXPECT(error.IsNull()); 205 EXPECT(error.IsNull());
206 } 206 }
207 207
208 208
209 // TODO(zra): Remove once supported.
210 #if !defined(TARGET_ARCH_ARM64)
211
212 LocalVariable* CodeGenTest::CreateTempConstVariable(const char* name_part) { 209 LocalVariable* CodeGenTest::CreateTempConstVariable(const char* name_part) {
213 char name[64]; 210 char name[64];
214 OS::SNPrint(name, 64, ":%s", name_part); 211 OS::SNPrint(name, 64, ":%s", name_part);
215 LocalVariable* temp = 212 LocalVariable* temp =
216 new LocalVariable(0, 213 new LocalVariable(0,
217 String::ZoneHandle(Symbols::New(name)), 214 String::ZoneHandle(Symbols::New(name)),
218 Type::ZoneHandle(Type::DynamicType())); 215 Type::ZoneHandle(Type::DynamicType()));
219 temp->set_is_final(); 216 temp->set_is_final();
220 node_sequence_->scope()->AddVariable(temp); 217 node_sequence_->scope()->AddVariable(temp);
221 return temp; 218 return temp;
(...skipping 14 matching lines...) Expand all
236 233
237 234
238 bool CompilerTest::TestCompileFunction(const Function& function) { 235 bool CompilerTest::TestCompileFunction(const Function& function) {
239 Isolate* isolate = Isolate::Current(); 236 Isolate* isolate = Isolate::Current();
240 ASSERT(isolate != NULL); 237 ASSERT(isolate != NULL);
241 ASSERT(ClassFinalizer::AllClassesFinalized()); 238 ASSERT(ClassFinalizer::AllClassesFinalized());
242 const Error& error = Error::Handle(Compiler::CompileFunction(function)); 239 const Error& error = Error::Handle(Compiler::CompileFunction(function));
243 return error.IsNull(); 240 return error.IsNull();
244 } 241 }
245 242
246 #endif // !defined(TARGET_ARCH_ARM64)
247 243
248 } // namespace dart 244 } // namespace dart
OLDNEW
« runtime/vm/intermediate_language_arm64.cc ('K') | « runtime/vm/stub_code_arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698