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

Side by Side Diff: src/code-stubs.cc

Issue 1355113002: [ic] Also collect known map for relational comparison. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Jakob's comment. Created 5 years, 3 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/arm64/code-stubs-arm64.cc ('k') | src/contexts.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 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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 factory->compare_ic_string(), 376 factory->compare_ic_string(),
377 new_object); 377 new_object);
378 } 378 }
379 379
380 380
381 bool CompareICStub::FindCodeInSpecialCache(Code** code_out) { 381 bool CompareICStub::FindCodeInSpecialCache(Code** code_out) {
382 Factory* factory = isolate()->factory(); 382 Factory* factory = isolate()->factory();
383 Code::Flags flags = Code::ComputeFlags( 383 Code::Flags flags = Code::ComputeFlags(
384 GetCodeKind(), 384 GetCodeKind(),
385 UNINITIALIZED); 385 UNINITIALIZED);
386 DCHECK(op() == Token::EQ || op() == Token::EQ_STRICT);
387 Handle<Object> probe( 386 Handle<Object> probe(
388 known_map_->FindInCodeCache( 387 known_map_->FindInCodeCache(
389 strict() ? 388 strict() ?
390 *factory->strict_compare_ic_string() : 389 *factory->strict_compare_ic_string() :
391 *factory->compare_ic_string(), 390 *factory->compare_ic_string(),
392 flags), 391 flags),
393 isolate()); 392 isolate());
394 if (probe->IsCode()) { 393 if (probe->IsCode()) {
395 *code_out = Code::cast(*probe); 394 *code_out = Code::cast(*probe);
396 #ifdef DEBUG 395 #ifdef DEBUG
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 1049
1051 if (type->Is(Type::UntaggedPointer())) { 1050 if (type->Is(Type::UntaggedPointer())) {
1052 return Representation::External(); 1051 return Representation::External();
1053 } 1052 }
1054 1053
1055 DCHECK(!type->Is(Type::Untagged())); 1054 DCHECK(!type->Is(Type::Untagged()));
1056 return Representation::Tagged(); 1055 return Representation::Tagged();
1057 } 1056 }
1058 } // namespace internal 1057 } // namespace internal
1059 } // namespace v8 1058 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698