OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |