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

Side by Side Diff: src/compiler/js-operator.cc

Issue 1104453006: [turbofan] Introduce explicit JSCreateLiteral[Array|Object]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 7 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
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) { 472 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) {
473 CreateClosureParameters parameters(shared_info, pretenure); 473 CreateClosureParameters parameters(shared_info, pretenure);
474 return new (zone()) Operator1<CreateClosureParameters>( // -- 474 return new (zone()) Operator1<CreateClosureParameters>( // --
475 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode 475 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode
476 "JSCreateClosure", // name 476 "JSCreateClosure", // name
477 1, 1, 1, 1, 1, 0, // counts 477 1, 1, 1, 1, 1, 0, // counts
478 parameters); // parameter 478 parameters); // parameter
479 } 479 }
480 480
481 481
482 const Operator* JSOperatorBuilder::CreateLiteralArray(int literal_flags) {
483 return new (zone()) Operator1<int>( // --
484 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode
485 "JSCreateLiteralArray", // name
486 3, 1, 1, 1, 1, 2, // counts
487 literal_flags); // parameter
488 }
489
490
491 const Operator* JSOperatorBuilder::CreateLiteralObject(int literal_flags) {
492 return new (zone()) Operator1<int>( // --
493 IrOpcode::kJSCreateLiteralObject, Operator::kNoProperties, // opcode
494 "JSCreateLiteralObject", // name
495 3, 1, 1, 1, 1, 2, // counts
496 literal_flags); // parameter
497 }
498
499
482 const Operator* JSOperatorBuilder::CreateCatchContext( 500 const Operator* JSOperatorBuilder::CreateCatchContext(
483 const Unique<String>& name) { 501 const Unique<String>& name) {
484 return new (zone()) Operator1<Unique<String>>( // -- 502 return new (zone()) Operator1<Unique<String>>( // --
485 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 503 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
486 "JSCreateCatchContext", // name 504 "JSCreateCatchContext", // name
487 2, 1, 1, 1, 1, 2, // counts 505 2, 1, 1, 1, 1, 2, // counts
488 name); // parameter 506 name); // parameter
489 } 507 }
490 508
491 } // namespace compiler 509 } // namespace compiler
492 } // namespace internal 510 } // namespace internal
493 } // namespace v8 511 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698