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

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

Issue 11780005: Allow optimized code when debugger is active (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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.h ('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 "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
11 #include "vm/bootstrap.h" 11 #include "vm/bootstrap.h"
12 #include "vm/class_finalizer.h" 12 #include "vm/class_finalizer.h"
13 #include "vm/code_generator.h" 13 #include "vm/code_generator.h"
14 #include "vm/code_observers.h" 14 #include "vm/code_observers.h"
15 #include "vm/code_patcher.h" 15 #include "vm/code_patcher.h"
16 #include "vm/compiler.h" 16 #include "vm/compiler.h"
17 #include "vm/compiler_stats.h" 17 #include "vm/compiler_stats.h"
18 #include "vm/dart.h" 18 #include "vm/dart.h"
19 #include "vm/dart_api_state.h" 19 #include "vm/dart_api_state.h"
20 #include "vm/dart_entry.h" 20 #include "vm/dart_entry.h"
21 #include "vm/datastream.h" 21 #include "vm/datastream.h"
22 #include "vm/debugger.h"
22 #include "vm/deopt_instructions.h" 23 #include "vm/deopt_instructions.h"
23 #include "vm/double_conversion.h" 24 #include "vm/double_conversion.h"
24 #include "vm/exceptions.h" 25 #include "vm/exceptions.h"
25 #include "vm/growable_array.h" 26 #include "vm/growable_array.h"
26 #include "vm/heap.h" 27 #include "vm/heap.h"
27 #include "vm/object_store.h" 28 #include "vm/object_store.h"
28 #include "vm/parser.h" 29 #include "vm/parser.h"
29 #include "vm/runtime_entry.h" 30 #include "vm/runtime_entry.h"
30 #include "vm/scopes.h" 31 #include "vm/scopes.h"
31 #include "vm/stack_frame.h" 32 #include "vm/stack_frame.h"
(...skipping 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after
3098 void PatchClass::set_patched_class(const Class& value) const { 3099 void PatchClass::set_patched_class(const Class& value) const {
3099 StorePointer(&raw_ptr()->patched_class_, value.raw()); 3100 StorePointer(&raw_ptr()->patched_class_, value.raw());
3100 } 3101 }
3101 3102
3102 3103
3103 void PatchClass::set_script(const Script& value) const { 3104 void PatchClass::set_script(const Script& value) const {
3104 StorePointer(&raw_ptr()->script_, value.raw()); 3105 StorePointer(&raw_ptr()->script_, value.raw());
3105 } 3106 }
3106 3107
3107 3108
3109 bool Function::HasBreakpoint() const {
3110 return Isolate::Current()->debugger()->HasBreakpoint(*this);
3111 }
3112
3113
3108 void Function::SetCode(const Code& value) const { 3114 void Function::SetCode(const Code& value) const {
3109 StorePointer(&raw_ptr()->code_, value.raw()); 3115 StorePointer(&raw_ptr()->code_, value.raw());
3110 ASSERT(Function::Handle(value.function()).IsNull() || 3116 ASSERT(Function::Handle(value.function()).IsNull() ||
3111 (value.function() == this->raw())); 3117 (value.function() == this->raw()));
3112 value.set_function(*this); 3118 value.set_function(*this);
3113 } 3119 }
3114 3120
3115 3121
3116 void Function::SwitchToUnoptimizedCode() const { 3122 void Function::SwitchToUnoptimizedCode() const {
3117 ASSERT(HasOptimizedCode()); 3123 ASSERT(HasOptimizedCode());
(...skipping 9304 matching lines...) Expand 10 before | Expand all | Expand 10 after
12422 } 12428 }
12423 return result.raw(); 12429 return result.raw();
12424 } 12430 }
12425 12431
12426 12432
12427 const char* WeakProperty::ToCString() const { 12433 const char* WeakProperty::ToCString() const {
12428 return "_WeakProperty"; 12434 return "_WeakProperty";
12429 } 12435 }
12430 12436
12431 } // namespace dart 12437 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698