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

Side by Side Diff: src/type-info.cc

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase master Created 4 years, 6 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 | « src/string-stream.cc ('k') | src/typing-asm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/type-info.h" 5 #include "src/type-info.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 KeyedStoreICNexus nexus(feedback_vector_, slot); 101 KeyedStoreICNexus nexus(feedback_vector_, slot);
102 return nexus.StateFromFeedback() == UNINITIALIZED; 102 return nexus.StateFromFeedback() == UNINITIALIZED;
103 } 103 }
104 } 104 }
105 return true; 105 return true;
106 } 106 }
107 107
108 108
109 bool TypeFeedbackOracle::CallIsUninitialized(FeedbackVectorSlot slot) { 109 bool TypeFeedbackOracle::CallIsUninitialized(FeedbackVectorSlot slot) {
110 Handle<Object> value = GetInfo(slot); 110 Handle<Object> value = GetInfo(slot);
111 return value->IsUndefined() || 111 return value->IsUndefined(isolate()) ||
112 value.is_identical_to( 112 value.is_identical_to(
113 TypeFeedbackVector::UninitializedSentinel(isolate())); 113 TypeFeedbackVector::UninitializedSentinel(isolate()));
114 } 114 }
115 115
116 116
117 bool TypeFeedbackOracle::CallIsMonomorphic(FeedbackVectorSlot slot) { 117 bool TypeFeedbackOracle::CallIsMonomorphic(FeedbackVectorSlot slot) {
118 Handle<Object> value = GetInfo(slot); 118 Handle<Object> value = GetInfo(slot);
119 return value->IsAllocationSite() || value->IsJSFunction(); 119 return value->IsAllocationSite() || value->IsJSFunction();
120 } 120 }
121 121
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // Dictionary has been allocated with sufficient size for all elements. 467 // Dictionary has been allocated with sufficient size for all elements.
468 DisallowHeapAllocation no_need_to_resize_dictionary; 468 DisallowHeapAllocation no_need_to_resize_dictionary;
469 HandleScope scope(isolate()); 469 HandleScope scope(isolate());
470 USE(UnseededNumberDictionary::AtNumberPut( 470 USE(UnseededNumberDictionary::AtNumberPut(
471 dictionary_, IdToKey(ast_id), handle(target, isolate()))); 471 dictionary_, IdToKey(ast_id), handle(target, isolate())));
472 } 472 }
473 473
474 474
475 } // namespace internal 475 } // namespace internal
476 } // namespace v8 476 } // namespace v8
OLDNEW
« no previous file with comments | « src/string-stream.cc ('k') | src/typing-asm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698