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

Side by Side Diff: src/full-codegen.cc

Issue 567433002: Eliminate Turbofan shims with CodeFactory (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. 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/compiler/simplified-lowering.cc ('k') | src/ia32/builtins-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/code-factory.h"
7 #include "src/codegen.h" 8 #include "src/codegen.h"
8 #include "src/compiler.h" 9 #include "src/compiler.h"
9 #include "src/debug.h" 10 #include "src/debug.h"
10 #include "src/full-codegen.h" 11 #include "src/full-codegen.h"
11 #include "src/liveedit.h" 12 #include "src/liveedit.h"
12 #include "src/macro-assembler.h" 13 #include "src/macro-assembler.h"
13 #include "src/prettyprinter.h" 14 #include "src/prettyprinter.h"
14 #include "src/scopeinfo.h" 15 #include "src/scopeinfo.h"
15 #include "src/scopes.h" 16 #include "src/scopes.h"
16 #include "src/snapshot.h" 17 #include "src/snapshot.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 402 }
402 403
403 404
404 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { 405 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) {
405 PrepareForBailoutForId(node->id(), state); 406 PrepareForBailoutForId(node->id(), state);
406 } 407 }
407 408
408 409
409 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, 410 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode,
410 TypeFeedbackId id) { 411 TypeFeedbackId id) {
411 ExtraICState extra_state = LoadIC::ComputeExtraICState(contextual_mode); 412 Handle<Code> ic = CodeFactory::LoadIC(isolate(), contextual_mode).code();
412 Handle<Code> ic = LoadIC::initialize_stub(isolate(), extra_state);
413 CallIC(ic, id); 413 CallIC(ic, id);
414 } 414 }
415 415
416 416
417 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { 417 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) {
418 Handle<Code> ic = StoreIC::initialize_stub(isolate(), strict_mode()); 418 Handle<Code> ic = CodeFactory::StoreIC(isolate(), strict_mode()).code();
419 CallIC(ic, id); 419 CallIC(ic, id);
420 } 420 }
421 421
422 422
423 void FullCodeGenerator::RecordJSReturnSite(Call* call) { 423 void FullCodeGenerator::RecordJSReturnSite(Call* call) {
424 // We record the offset of the function return so we can rebuild the frame 424 // We record the offset of the function return so we can rebuild the frame
425 // if the function was inlined, i.e., this is the return address in the 425 // if the function was inlined, i.e., this is the return address in the
426 // inlined function's frame. 426 // inlined function's frame.
427 // 427 //
428 // The state is ignored. We defensively set it to TOS_REG, which is the 428 // The state is ignored. We defensively set it to TOS_REG, which is the
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 } 1690 }
1691 return true; 1691 return true;
1692 } 1692 }
1693 #endif // DEBUG 1693 #endif // DEBUG
1694 1694
1695 1695
1696 #undef __ 1696 #undef __
1697 1697
1698 1698
1699 } } // namespace v8::internal 1699 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698