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

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

Issue 506003002: Minor-key-ify BinaryOpICWithAllocationSiteStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-add GetExtraICState() Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // static 285 // static
286 void BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { 286 void BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) {
287 // Generate special versions of the stub. 287 // Generate special versions of the stub.
288 BinaryOpIC::State::GenerateAheadOfTime(isolate, &GenerateAheadOfTime); 288 BinaryOpIC::State::GenerateAheadOfTime(isolate, &GenerateAheadOfTime);
289 } 289 }
290 290
291 291
292 void BinaryOpICWithAllocationSiteStub::PrintState( 292 void BinaryOpICWithAllocationSiteStub::PrintState(
293 OStream& os) const { // NOLINT 293 OStream& os) const { // NOLINT
294 os << state_; 294 os << state();
295 } 295 }
296 296
297 297
298 // static 298 // static
299 void BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime( 299 void BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime(
300 Isolate* isolate, const BinaryOpIC::State& state) { 300 Isolate* isolate, const BinaryOpIC::State& state) {
301 if (state.CouldCreateAllocationMementos()) { 301 if (state.CouldCreateAllocationMementos()) {
302 BinaryOpICWithAllocationSiteStub stub(isolate, state); 302 BinaryOpICWithAllocationSiteStub stub(isolate, state);
303 stub.GetCode(); 303 stub.GetCode();
304 } 304 }
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 InstallDescriptor(isolate, &stub3); 997 InstallDescriptor(isolate, &stub3);
998 } 998 }
999 999
1000 InternalArrayConstructorStub::InternalArrayConstructorStub( 1000 InternalArrayConstructorStub::InternalArrayConstructorStub(
1001 Isolate* isolate) : PlatformCodeStub(isolate) { 1001 Isolate* isolate) : PlatformCodeStub(isolate) {
1002 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1002 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1003 } 1003 }
1004 1004
1005 1005
1006 } } // namespace v8::internal 1006 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698