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

Side by Side Diff: test/unittests/compiler/js-operator-unittest.cc

Issue 1380113002: [turbofan] Call FastNewContextStub for function context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment. Created 5 years, 2 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
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 #include "src/compiler/opcodes.h" 6 #include "src/compiler/opcodes.h"
7 #include "src/compiler/operator.h" 7 #include "src/compiler/operator.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 SHARED(ToBoolean, Operator::kEliminatable, 1, 0, 1, 0, 1, 1, 0), 75 SHARED(ToBoolean, Operator::kEliminatable, 1, 0, 1, 0, 1, 1, 0),
76 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 76 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
77 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), 77 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2),
78 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 78 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
79 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 79 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
80 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), 80 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2),
81 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1, 0), 81 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1, 0),
82 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 82 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
83 SHARED(TypeOf, Operator::kEliminatable, 1, 0, 1, 0, 1, 1, 0), 83 SHARED(TypeOf, Operator::kEliminatable, 1, 0, 1, 0, 1, 1, 0),
84 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 84 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
85 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2),
86 SHARED(CreateWithContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 85 SHARED(CreateWithContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
87 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), 86 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2),
88 #undef SHARED 87 #undef SHARED
89 }; 88 };
90 89
91 90
92 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) { 91 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) {
93 return os << IrOpcode::Mnemonic(sop.opcode); 92 return os << IrOpcode::Mnemonic(sop.opcode);
94 } 93 }
95 94
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 INSTANTIATE_TEST_CASE_P( 274 INSTANTIATE_TEST_CASE_P(
276 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, 275 JSOperatorTest, JSSharedOperatorWithLanguageModeTest,
277 ::testing::Combine(::testing::ValuesIn(kLanguageModes), 276 ::testing::Combine(::testing::ValuesIn(kLanguageModes),
278 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); 277 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode)));
279 278
280 #endif // GTEST_HAS_COMBINE 279 #endif // GTEST_HAS_COMBINE
281 280
282 } // namespace compiler 281 } // namespace compiler
283 } // namespace internal 282 } // namespace internal
284 } // namespace v8 283 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/js-context-relaxation-unittest.cc ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698