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

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

Issue 9314053: Revert Dart_PropagateError until I can track down the problems in (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « runtime/vm/code_generator_x64.cc ('k') | runtime/vm/compiler.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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/globals.h" 6 #include "vm/globals.h"
7 #if defined(TARGET_ARCH_X64) 7 #if defined(TARGET_ARCH_X64)
8 8
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 const TypeArguments& no_type_arguments = TypeArguments::ZoneHandle(); 478 const TypeArguments& no_type_arguments = TypeArguments::ZoneHandle();
479 ArgumentListNode* no_arguments = new ArgumentListNode(kPos); 479 ArgumentListNode* no_arguments = new ArgumentListNode(kPos);
480 test->node_sequence()->Add(new ReturnNode(kPos, new ConstructorCallNode( 480 test->node_sequence()->Add(new ReturnNode(kPos, new ConstructorCallNode(
481 kPos, no_type_arguments, constructor, no_arguments))); 481 kPos, no_type_arguments, constructor, no_arguments)));
482 } 482 }
483 483
484 484
485 CODEGEN_TEST_RAW_RUN(AllocateNewObjectCodegen, function) { 485 CODEGEN_TEST_RAW_RUN(AllocateNewObjectCodegen, function) {
486 GrowableArray<const Object*> arguments; 486 GrowableArray<const Object*> arguments;
487 const Array& kNoArgumentNames = Array::Handle(); 487 const Array& kNoArgumentNames = Array::Handle();
488 Object& result = Object::Handle(); 488 Instance& result = Instance::Handle();
489 result = DartEntry::InvokeStatic(function, arguments, kNoArgumentNames); 489 result = DartEntry::InvokeStatic(function, arguments, kNoArgumentNames);
490 EXPECT(!result.IsError());
491 const Library& app_lib = Library::Handle( 490 const Library& app_lib = Library::Handle(
492 Isolate::Current()->object_store()->registered_libraries()); 491 Isolate::Current()->object_store()->registered_libraries());
493 const Class& cls = Class::Handle( 492 const Class& cls = Class::Handle(
494 app_lib.LookupClass(String::Handle(String::NewSymbol("A")))); 493 app_lib.LookupClass(String::Handle(String::NewSymbol("A"))));
495 EXPECT_EQ(cls.raw(), result.clazz()); 494 EXPECT_EQ(cls.raw(), result.clazz());
496 } 495 }
497 496
498 } // namespace dart 497 } // namespace dart
499 498
500 #endif // defined TARGET_ARCH_X64 499 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_x64.cc ('k') | runtime/vm/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698