OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/builtins.h" | 5 #include "src/builtins.h" |
6 | 6 |
7 #include "src/api-arguments.h" | 7 #include "src/api-arguments.h" |
8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2471 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kReturn, | 2471 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kReturn, |
2472 "[Generator].prototype.return"); | 2472 "[Generator].prototype.return"); |
2473 } | 2473 } |
2474 | 2474 |
2475 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) | 2475 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) |
2476 void Builtins::Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler) { | 2476 void Builtins::Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler) { |
2477 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kThrow, | 2477 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kThrow, |
2478 "[Generator].prototype.throw"); | 2478 "[Generator].prototype.throw"); |
2479 } | 2479 } |
2480 | 2480 |
2481 void Builtins::Generate_AsyncFunctionNext(CodeStubAssembler* assembler) { | |
2482 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kNext, | |
2483 "AsyncFunctionNext"); | |
2484 } | |
2485 | |
2486 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) | |
2487 void Builtins::Generate_AsyncFunctionThrow(CodeStubAssembler* assembler) { | |
2488 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kThrow, | |
2489 "AsyncFunctionThrow"); | |
2490 } | |
Dan Ehrenberg
2016/05/04 22:52:36
Just to make sure I understand, these are separate
Benedikt Meurer
2016/05/05 19:04:45
From my POV, these are separate primarily because
| |
2491 | |
2481 // ----------------------------------------------------------------------------- | 2492 // ----------------------------------------------------------------------------- |
2482 // ES6 section 26.1 The Reflect Object | 2493 // ES6 section 26.1 The Reflect Object |
2483 | 2494 |
2484 // ES6 section 26.1.3 Reflect.defineProperty | 2495 // ES6 section 26.1.3 Reflect.defineProperty |
2485 BUILTIN(ReflectDefineProperty) { | 2496 BUILTIN(ReflectDefineProperty) { |
2486 HandleScope scope(isolate); | 2497 HandleScope scope(isolate); |
2487 DCHECK_EQ(4, args.length()); | 2498 DCHECK_EQ(4, args.length()); |
2488 Handle<Object> target = args.at<Object>(1); | 2499 Handle<Object> target = args.at<Object>(1); |
2489 Handle<Object> key = args.at<Object>(2); | 2500 Handle<Object> key = args.at<Object>(2); |
2490 Handle<Object> attributes = args.at<Object>(3); | 2501 Handle<Object> attributes = args.at<Object>(3); |
(...skipping 2965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5456 BUILTIN_LIST_T(DEFINE_BUILTIN_ACCESSOR_T) | 5467 BUILTIN_LIST_T(DEFINE_BUILTIN_ACCESSOR_T) |
5457 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) | 5468 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
5458 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 5469 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
5459 #undef DEFINE_BUILTIN_ACCESSOR_C | 5470 #undef DEFINE_BUILTIN_ACCESSOR_C |
5460 #undef DEFINE_BUILTIN_ACCESSOR_A | 5471 #undef DEFINE_BUILTIN_ACCESSOR_A |
5461 #undef DEFINE_BUILTIN_ACCESSOR_T | 5472 #undef DEFINE_BUILTIN_ACCESSOR_T |
5462 #undef DEFINE_BUILTIN_ACCESSOR_H | 5473 #undef DEFINE_BUILTIN_ACCESSOR_H |
5463 | 5474 |
5464 } // namespace internal | 5475 } // namespace internal |
5465 } // namespace v8 | 5476 } // namespace v8 |
OLD | NEW |