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

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

Issue 502713003: Encode CEntryStub properties in the minor key. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: encode Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/codegen.cc » ('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/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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698