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

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

Issue 12079117: Revert changes 17962-3 which break Dartium Debug build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/object.cc ('k') | runtime/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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 const String& parent_name = String::Handle(Symbols::New("foo_papa")); 2582 const String& parent_name = String::Handle(Symbols::New("foo_papa"));
2583 parent = Function::New(parent_name, RawFunction::kRegularFunction, 2583 parent = Function::New(parent_name, RawFunction::kRegularFunction,
2584 false, false, false, false, cls, 0); 2584 false, false, false, false, cls, 0);
2585 functions.SetAt(0, parent); 2585 functions.SetAt(0, parent);
2586 cls.SetFunctions(functions); 2586 cls.SetFunctions(functions);
2587 2587
2588 Function& function = Function::Handle(); 2588 Function& function = Function::Handle();
2589 const String& function_name = String::Handle(Symbols::New("foo")); 2589 const String& function_name = String::Handle(Symbols::New("foo"));
2590 function = Function::NewClosureFunction(function_name, parent, 0); 2590 function = Function::NewClosureFunction(function_name, parent, 0);
2591 const Class& signature_class = Class::Handle( 2591 const Class& signature_class = Class::Handle(
2592 Class::NewSignatureClass(function_name, function, script, 0)); 2592 Class::NewSignatureClass(function_name, function, script));
2593 const Instance& closure = Instance::Handle(Closure::New(function, context)); 2593 const Instance& closure = Instance::Handle(Closure::New(function, context));
2594 const Class& closure_class = Class::Handle(closure.clazz()); 2594 const Class& closure_class = Class::Handle(closure.clazz());
2595 EXPECT(closure_class.IsSignatureClass()); 2595 EXPECT(closure_class.IsSignatureClass());
2596 EXPECT(closure_class.IsCanonicalSignatureClass()); 2596 EXPECT(closure_class.IsCanonicalSignatureClass());
2597 EXPECT_EQ(closure_class.raw(), signature_class.raw()); 2597 EXPECT_EQ(closure_class.raw(), signature_class.raw());
2598 const Function& signature_function = 2598 const Function& signature_function =
2599 Function::Handle(signature_class.signature_function()); 2599 Function::Handle(signature_class.signature_function());
2600 EXPECT_EQ(signature_function.raw(), function.raw()); 2600 EXPECT_EQ(signature_function.raw(), function.raw());
2601 const Context& closure_context = Context::Handle(Closure::context(closure)); 2601 const Context& closure_context = Context::Handle(Closure::context(closure));
2602 EXPECT_EQ(closure_context.raw(), closure_context.raw()); 2602 EXPECT_EQ(closure_context.raw(), closure_context.raw());
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
3586 EXPECT_NE(test1.SourceFingerprint(), test3.SourceFingerprint()); 3586 EXPECT_NE(test1.SourceFingerprint(), test3.SourceFingerprint());
3587 EXPECT_NE(test3.SourceFingerprint(), test4.SourceFingerprint()); 3587 EXPECT_NE(test3.SourceFingerprint(), test4.SourceFingerprint());
3588 EXPECT_NE(test4.SourceFingerprint(), test5.SourceFingerprint()); 3588 EXPECT_NE(test4.SourceFingerprint(), test5.SourceFingerprint());
3589 EXPECT_NE(test5.SourceFingerprint(), test6.SourceFingerprint()); 3589 EXPECT_NE(test5.SourceFingerprint(), test6.SourceFingerprint());
3590 EXPECT_EQ(test6.SourceFingerprint(), test7.SourceFingerprint()); 3590 EXPECT_EQ(test6.SourceFingerprint(), test7.SourceFingerprint());
3591 } 3591 }
3592 3592
3593 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 3593 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
3594 3594
3595 } // namespace dart 3595 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698