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

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

Issue 1418863003: Precompilation: Generate instance calls as IC calls that can switch to Megamoprhic calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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.h ('k') | runtime/vm/object_store.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/json.h" 10 #include "platform/json.h"
(...skipping 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 ASSERT(user_tag < kUwordMax); 1977 ASSERT(user_tag < kUwordMax);
1978 set_user_tag(user_tag); 1978 set_user_tag(user_tag);
1979 current_tag_ = tag.raw(); 1979 current_tag_ = tag.raw();
1980 } 1980 }
1981 1981
1982 1982
1983 void Isolate::set_default_tag(const UserTag& tag) { 1983 void Isolate::set_default_tag(const UserTag& tag) {
1984 default_tag_ = tag.raw(); 1984 default_tag_ = tag.raw();
1985 } 1985 }
1986 1986
1987 void Isolate::set_ic_miss_code(const Code& code) {
1988 ic_miss_code_ = code.raw();
1989 }
1990
1987 1991
1988 void Isolate::set_deoptimized_code_array(const GrowableObjectArray& value) { 1992 void Isolate::set_deoptimized_code_array(const GrowableObjectArray& value) {
1989 ASSERT(Thread::Current()->IsMutatorThread()); 1993 ASSERT(Thread::Current()->IsMutatorThread());
1990 deoptimized_code_array_ = value.raw(); 1994 deoptimized_code_array_ = value.raw();
1991 } 1995 }
1992 1996
1993 1997
1994 void Isolate::TrackDeoptimizedCode(const Code& code) { 1998 void Isolate::TrackDeoptimizedCode(const Code& code) {
1995 ASSERT(!code.IsNull()); 1999 ASSERT(!code.IsNull());
1996 const GrowableObjectArray& deoptimized_code = 2000 const GrowableObjectArray& deoptimized_code =
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 } 2589 }
2586 2590
2587 2591
2588 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { 2592 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) {
2589 return DeserializeObject(thread, 2593 return DeserializeObject(thread,
2590 serialized_message_, serialized_message_len_); 2594 serialized_message_, serialized_message_len_);
2591 } 2595 }
2592 2596
2593 2597
2594 } // namespace dart 2598 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698