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

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

Issue 1914403002: Version 5.0.71.38 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: 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 | « src/type-feedback-vector.cc ('k') | test/mjsunit/regress/regress-crbug-594183.js » ('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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 FeedbackVectorSlot slot, SmallMapList* receiver_types, bool* is_string, 294 FeedbackVectorSlot slot, SmallMapList* receiver_types, bool* is_string,
295 IcCheckType* key_type) { 295 IcCheckType* key_type) {
296 receiver_types->Clear(); 296 receiver_types->Clear();
297 if (slot.IsInvalid()) { 297 if (slot.IsInvalid()) {
298 *is_string = false; 298 *is_string = false;
299 *key_type = ELEMENT; 299 *key_type = ELEMENT;
300 } else { 300 } else {
301 KeyedLoadICNexus nexus(feedback_vector_, slot); 301 KeyedLoadICNexus nexus(feedback_vector_, slot);
302 CollectReceiverTypes<FeedbackNexus>(&nexus, receiver_types); 302 CollectReceiverTypes<FeedbackNexus>(&nexus, receiver_types);
303 *is_string = HasOnlyStringMaps(receiver_types); 303 *is_string = HasOnlyStringMaps(receiver_types);
304 *key_type = nexus.FindFirstName() != NULL ? PROPERTY : ELEMENT; 304 *key_type = nexus.GetKeyType();
305 } 305 }
306 } 306 }
307 307
308 308
309 void TypeFeedbackOracle::AssignmentReceiverTypes(FeedbackVectorSlot slot, 309 void TypeFeedbackOracle::AssignmentReceiverTypes(FeedbackVectorSlot slot,
310 Handle<Name> name, 310 Handle<Name> name,
311 SmallMapList* receiver_types) { 311 SmallMapList* receiver_types) {
312 receiver_types->Clear(); 312 receiver_types->Clear();
313 Code::Flags flags = Code::ComputeHandlerFlags(Code::STORE_IC); 313 Code::Flags flags = Code::ComputeHandlerFlags(Code::STORE_IC);
314 CollectReceiverTypes(slot, name, flags, receiver_types); 314 CollectReceiverTypes(slot, name, flags, receiver_types);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // Dictionary has been allocated with sufficient size for all elements. 474 // Dictionary has been allocated with sufficient size for all elements.
475 DisallowHeapAllocation no_need_to_resize_dictionary; 475 DisallowHeapAllocation no_need_to_resize_dictionary;
476 HandleScope scope(isolate()); 476 HandleScope scope(isolate());
477 USE(UnseededNumberDictionary::AtNumberPut( 477 USE(UnseededNumberDictionary::AtNumberPut(
478 dictionary_, IdToKey(ast_id), handle(target, isolate()))); 478 dictionary_, IdToKey(ast_id), handle(target, isolate())));
479 } 479 }
480 480
481 481
482 } // namespace internal 482 } // namespace internal
483 } // namespace v8 483 } // namespace v8
OLDNEW
« no previous file with comments | « src/type-feedback-vector.cc ('k') | test/mjsunit/regress/regress-crbug-594183.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698