| 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <sstream> | 6 #include <sstream> |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "src/api.h" | 9 #include "src/api.h" |
| 10 #include "src/objects-inl.h" |
| 10 #include "src/objects.h" | 11 #include "src/objects.h" |
| 11 #include "src/v8.h" | 12 #include "src/v8.h" |
| 12 | 13 |
| 13 #include "test/cctest/cctest.h" | 14 #include "test/cctest/cctest.h" |
| 14 | 15 |
| 15 using namespace v8::base; | 16 using namespace v8::base; |
| 16 using namespace v8::internal; | 17 using namespace v8::internal; |
| 17 | 18 |
| 18 | 19 |
| 19 static const int kMaxInobjectProperties = | 20 static const int kMaxInobjectProperties = |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 | 1102 |
| 1102 TestSubclassBuiltin("A1", JS_PROMISE_TYPE, "Promise", | 1103 TestSubclassBuiltin("A1", JS_PROMISE_TYPE, "Promise", |
| 1103 "function(resolve, reject) { resolve('ok'); }"); | 1104 "function(resolve, reject) { resolve('ok'); }"); |
| 1104 } | 1105 } |
| 1105 | 1106 |
| 1106 | 1107 |
| 1107 TEST(SubclassPromiseBuiltinNoInlineNew) { | 1108 TEST(SubclassPromiseBuiltinNoInlineNew) { |
| 1108 FLAG_inline_new = false; | 1109 FLAG_inline_new = false; |
| 1109 TestSubclassPromiseBuiltin(); | 1110 TestSubclassPromiseBuiltin(); |
| 1110 } | 1111 } |
| OLD | NEW |