| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
| 10 #include "src/factory.h" | 10 #include "src/factory.h" |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 ICCompareStub::DecodeKey((*code_out)->stub_key(), NULL, NULL, NULL, | 373 ICCompareStub::DecodeKey((*code_out)->stub_key(), NULL, NULL, NULL, |
| 374 &cached_op); | 374 &cached_op); |
| 375 DCHECK(op_ == cached_op); | 375 DCHECK(op_ == cached_op); |
| 376 #endif | 376 #endif |
| 377 return true; | 377 return true; |
| 378 } | 378 } |
| 379 return false; | 379 return false; |
| 380 } | 380 } |
| 381 | 381 |
| 382 | 382 |
| 383 int ICCompareStub::MinorKey() const { | 383 uint32_t ICCompareStub::MinorKey() const { |
| 384 return OpField::encode(op_ - Token::EQ) | | 384 return OpField::encode(op_ - Token::EQ) | |
| 385 LeftStateField::encode(left_) | | 385 LeftStateField::encode(left_) | |
| 386 RightStateField::encode(right_) | | 386 RightStateField::encode(right_) | |
| 387 HandlerStateField::encode(state_); | 387 HandlerStateField::encode(state_); |
| 388 } | 388 } |
| 389 | 389 |
| 390 | 390 |
| 391 void ICCompareStub::DecodeKey(uint32_t stub_key, CompareIC::State* left_state, | 391 void ICCompareStub::DecodeKey(uint32_t stub_key, CompareIC::State* left_state, |
| 392 CompareIC::State* right_state, | 392 CompareIC::State* right_state, |
| 393 CompareIC::State* handler_state, | 393 CompareIC::State* handler_state, |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 InstallDescriptor(isolate, &stub3); | 976 InstallDescriptor(isolate, &stub3); |
| 977 } | 977 } |
| 978 | 978 |
| 979 InternalArrayConstructorStub::InternalArrayConstructorStub( | 979 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 980 Isolate* isolate) : PlatformCodeStub(isolate) { | 980 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 981 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 981 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 982 } | 982 } |
| 983 | 983 |
| 984 | 984 |
| 985 } } // namespace v8::internal | 985 } } // namespace v8::internal |
| OLD | NEW |