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

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

Issue 1340313003: [turbofan] Make arguments object materialization inlinable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-arguments-2
Patch Set: Rebased Created 5 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
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/linkage.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 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 size_t hash_value(CreateArgumentsParameters const& p) { 406 size_t hash_value(CreateArgumentsParameters const& p) {
407 return base::hash_combine(p.type(), p.start_index()); 407 return base::hash_combine(p.type(), p.start_index());
408 } 408 }
409 409
410 410
411 std::ostream& operator<<(std::ostream& os, CreateArgumentsParameters const& p) { 411 std::ostream& operator<<(std::ostream& os, CreateArgumentsParameters const& p) {
412 return os << p.type() << ", " << p.start_index(); 412 return os << p.type() << ", " << p.start_index();
413 } 413 }
414 414
415 415
416 const CreateArgumentsParameters& CreateArgumentsParametersOf(
417 const Operator* op) {
418 DCHECK_EQ(IrOpcode::kJSCreateArguments, op->opcode());
419 return OpParameter<CreateArgumentsParameters>(op);
420 }
421
422
416 bool operator==(CreateClosureParameters const& lhs, 423 bool operator==(CreateClosureParameters const& lhs,
417 CreateClosureParameters const& rhs) { 424 CreateClosureParameters const& rhs) {
418 return lhs.pretenure() == rhs.pretenure() && 425 return lhs.pretenure() == rhs.pretenure() &&
419 lhs.shared_info().is_identical_to(rhs.shared_info()); 426 lhs.shared_info().is_identical_to(rhs.shared_info());
420 } 427 }
421 428
422 429
423 bool operator!=(CreateClosureParameters const& lhs, 430 bool operator!=(CreateClosureParameters const& lhs,
424 CreateClosureParameters const& rhs) { 431 CreateClosureParameters const& rhs) {
425 return !(lhs == rhs); 432 return !(lhs == rhs);
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 Handle<String>::hash>( // -- 781 Handle<String>::hash>( // --
775 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 782 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
776 "JSCreateCatchContext", // name 783 "JSCreateCatchContext", // name
777 2, 1, 1, 1, 1, 2, // counts 784 2, 1, 1, 1, 1, 2, // counts
778 name); // parameter 785 name); // parameter
779 } 786 }
780 787
781 } // namespace compiler 788 } // namespace compiler
782 } // namespace internal 789 } // namespace internal
783 } // namespace v8 790 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698