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

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

Issue 1921963005: Version 5.1.281.19 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 years, 8 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 FeedbackVectorSlot slot, SmallMapList* receiver_types, bool* is_string, 290 FeedbackVectorSlot slot, SmallMapList* receiver_types, bool* is_string,
291 IcCheckType* key_type) { 291 IcCheckType* key_type) {
292 receiver_types->Clear(); 292 receiver_types->Clear();
293 if (slot.IsInvalid()) { 293 if (slot.IsInvalid()) {
294 *is_string = false; 294 *is_string = false;
295 *key_type = ELEMENT; 295 *key_type = ELEMENT;
296 } else { 296 } else {
297 KeyedLoadICNexus nexus(feedback_vector_, slot); 297 KeyedLoadICNexus nexus(feedback_vector_, slot);
298 CollectReceiverTypes<FeedbackNexus>(&nexus, receiver_types); 298 CollectReceiverTypes<FeedbackNexus>(&nexus, receiver_types);
299 *is_string = HasOnlyStringMaps(receiver_types); 299 *is_string = HasOnlyStringMaps(receiver_types);
300 *key_type = nexus.FindFirstName() != NULL ? PROPERTY : ELEMENT; 300 *key_type = nexus.GetKeyType();
301 } 301 }
302 } 302 }
303 303
304 304
305 void TypeFeedbackOracle::AssignmentReceiverTypes(FeedbackVectorSlot slot, 305 void TypeFeedbackOracle::AssignmentReceiverTypes(FeedbackVectorSlot slot,
306 Handle<Name> name, 306 Handle<Name> name,
307 SmallMapList* receiver_types) { 307 SmallMapList* receiver_types) {
308 receiver_types->Clear(); 308 receiver_types->Clear();
309 Code::Flags flags = Code::ComputeHandlerFlags(Code::STORE_IC); 309 Code::Flags flags = Code::ComputeHandlerFlags(Code::STORE_IC);
310 CollectReceiverTypes(slot, name, flags, receiver_types); 310 CollectReceiverTypes(slot, name, flags, receiver_types);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 // Dictionary has been allocated with sufficient size for all elements. 469 // Dictionary has been allocated with sufficient size for all elements.
470 DisallowHeapAllocation no_need_to_resize_dictionary; 470 DisallowHeapAllocation no_need_to_resize_dictionary;
471 HandleScope scope(isolate()); 471 HandleScope scope(isolate());
472 USE(UnseededNumberDictionary::AtNumberPut( 472 USE(UnseededNumberDictionary::AtNumberPut(
473 dictionary_, IdToKey(ast_id), handle(target, isolate()))); 473 dictionary_, IdToKey(ast_id), handle(target, isolate())));
474 } 474 }
475 475
476 476
477 } // namespace internal 477 } // namespace internal
478 } // namespace v8 478 } // 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