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

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

Issue 1978603002: Remove DebuggerEvent. Refactor remaining code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: before landing Created 4 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
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/parser_test.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/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 4061 matching lines...) Expand 10 before | Expand all | Expand 10 after
4072 const String& name = String::Handle(String::New(TestCase::url())); 4072 const String& name = String::Handle(String::New(TestCase::url()));
4073 const Library& vmlib = Library::Handle(Library::LookupLibrary(thread, name)); 4073 const Library& vmlib = Library::Handle(Library::LookupLibrary(thread, name));
4074 EXPECT(!vmlib.IsNull()); 4074 EXPECT(!vmlib.IsNull());
4075 const Class& class_a = Class::Handle( 4075 const Class& class_a = Class::Handle(
4076 vmlib.LookupClass(String::Handle(Symbols::New(thread, "A")))); 4076 vmlib.LookupClass(String::Handle(Symbols::New(thread, "A"))));
4077 const Function& func_b = 4077 const Function& func_b =
4078 Function::Handle(GetFunction(class_a, "b")); 4078 Function::Handle(GetFunction(class_a, "b"));
4079 EXPECT(func_b.CanBeInlined()); 4079 EXPECT(func_b.CanBeInlined());
4080 4080
4081 // After setting a breakpoint in a function A.b, it is no longer inlineable. 4081 // After setting a breakpoint in a function A.b, it is no longer inlineable.
4082 Breakpoint* bpt = 4082 result = Dart_SetBreakpoint(NewString(TestCase::url()), kBreakpointLine);
4083 Isolate::Current()->debugger()->SetBreakpointAtLine(name, 4083 EXPECT_VALID(result);
4084 kBreakpointLine);
4085 ASSERT(bpt != NULL);
4086 EXPECT(!func_b.CanBeInlined()); 4084 EXPECT(!func_b.CanBeInlined());
4087 } 4085 }
4088 4086
4089 4087
4090 VM_TEST_CASE(SpecialClassesHaveEmptyArrays) { 4088 VM_TEST_CASE(SpecialClassesHaveEmptyArrays) {
4091 ObjectStore* object_store = Isolate::Current()->object_store(); 4089 ObjectStore* object_store = Isolate::Current()->object_store();
4092 Class& cls = Class::Handle(); 4090 Class& cls = Class::Handle();
4093 Object& array = Object::Handle(); 4091 Object& array = Object::Handle();
4094 4092
4095 cls = object_store->null_class(); 4093 cls = object_store->null_class();
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
4720 String& test = String::Handle(); 4718 String& test = String::Handle();
4721 String& result = String::Handle(); 4719 String& result = String::Handle();
4722 for (size_t i = 0; i < ARRAY_SIZE(tests); i++) { 4720 for (size_t i = 0; i < ARRAY_SIZE(tests); i++) {
4723 test = String::New(tests[i].in); 4721 test = String::New(tests[i].in);
4724 result = String::ScrubName(test); 4722 result = String::ScrubName(test);
4725 EXPECT_STREQ(tests[i].out, result.ToCString()); 4723 EXPECT_STREQ(tests[i].out, result.ToCString());
4726 } 4724 }
4727 } 4725 }
4728 4726
4729 } // namespace dart 4727 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698