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
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 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 ASSERT(user_tag < kUwordMax); 1929 ASSERT(user_tag < kUwordMax);
1930 set_user_tag(user_tag); 1930 set_user_tag(user_tag);
1931 current_tag_ = tag.raw(); 1931 current_tag_ = tag.raw();
1932 } 1932 }
1933 1933
1934 1934
1935 void Isolate::set_default_tag(const UserTag& tag) { 1935 void Isolate::set_default_tag(const UserTag& tag) {
1936 default_tag_ = tag.raw(); 1936 default_tag_ = tag.raw();
1937 } 1937 }
1938 1938
1939 void Isolate::set_ic_miss_function(const Function& func) {
1940 ic_miss_function_ = func.raw();
1941 }
1942
1939 1943
1940 void Isolate::set_deoptimized_code_array(const GrowableObjectArray& value) { 1944 void Isolate::set_deoptimized_code_array(const GrowableObjectArray& value) {
1941 ASSERT(Thread::Current()->IsMutatorThread()); 1945 ASSERT(Thread::Current()->IsMutatorThread());
1942 deoptimized_code_array_ = value.raw(); 1946 deoptimized_code_array_ = value.raw();
1943 } 1947 }
1944 1948
1945 1949
1946 void Isolate::TrackDeoptimizedCode(const Code& code) { 1950 void Isolate::TrackDeoptimizedCode(const Code& code) {
1947 ASSERT(!code.IsNull()); 1951 ASSERT(!code.IsNull());
1948 const GrowableObjectArray& deoptimized_code = 1952 const GrowableObjectArray& deoptimized_code =
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 } 2541 }
2538 2542
2539 2543
2540 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { 2544 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) {
2541 return DeserializeObject(thread, 2545 return DeserializeObject(thread,
2542 serialized_message_, serialized_message_len_); 2546 serialized_message_, serialized_message_len_);
2543 } 2547 }
2544 2548
2545 2549
2546 } // namespace dart 2550 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698