OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/pipeline.h" | 7 #include "src/compiler/pipeline.h" |
8 #include "src/handles.h" | 8 #include "src/handles.h" |
9 #include "src/interpreter/bytecode-generator.h" | 9 #include "src/interpreter/bytecode-generator.h" |
10 #include "src/interpreter/interpreter.h" | 10 #include "src/interpreter/interpreter.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 kUseReo | kUsePeephole | kUseFilterExpressionPositions | kUseDeadCode) | 51 kUseReo | kUsePeephole | kUseFilterExpressionPositions | kUseDeadCode) |
52 | 52 |
53 struct TestCaseData { | 53 struct TestCaseData { |
54 TestCaseData(const char* const script, | 54 TestCaseData(const char* const script, |
55 const char* const declaration_parameters = "", | 55 const char* const declaration_parameters = "", |
56 const char* const arguments = "") | 56 const char* const arguments = "") |
57 : script_(script), | 57 : script_(script), |
58 declaration_parameters_(declaration_parameters), | 58 declaration_parameters_(declaration_parameters), |
59 arguments_(arguments) {} | 59 arguments_(arguments) {} |
60 | 60 |
61 const char* const script() const { return script_; } | 61 const char* script() const { return script_; } |
62 const char* const declaration_parameters() const { | 62 const char* declaration_parameters() const { return declaration_parameters_; } |
63 return declaration_parameters_; | 63 const char* arguments() const { return arguments_; } |
64 } | |
65 const char* const arguments() const { return arguments_; } | |
66 | 64 |
67 private: | 65 private: |
68 TestCaseData(); | 66 TestCaseData(); |
69 | 67 |
70 const char* const script_; | 68 const char* const script_; |
71 const char* const declaration_parameters_; | 69 const char* const declaration_parameters_; |
72 const char* const arguments_; | 70 const char* const arguments_; |
73 }; | 71 }; |
74 | 72 |
75 static const TestCaseData kTestCaseData[] = { | 73 static const TestCaseData kTestCaseData[] = { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 #define MAKE_TEST(Name, Bitmap) \ | 241 #define MAKE_TEST(Name, Bitmap) \ |
244 TEST(TestSourcePositionsEquivalent##Name) { \ | 242 TEST(TestSourcePositionsEquivalent##Name) { \ |
245 TestSourcePositionsEquivalent(Bitmap); \ | 243 TestSourcePositionsEquivalent(Bitmap); \ |
246 } | 244 } |
247 TEST_CASES(MAKE_TEST) | 245 TEST_CASES(MAKE_TEST) |
248 #undef MAKE_TEST | 246 #undef MAKE_TEST |
249 | 247 |
250 } // namespace interpreter | 248 } // namespace interpreter |
251 } // namespace internal | 249 } // namespace internal |
252 } // namespace v8 | 250 } // namespace v8 |
OLD | NEW |