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

Side by Side Diff: src/runtime.cc

Issue 551793002: Properly disable ES6 generator support for TurboFan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/generator.js ('k') | test/mjsunit/mjsunit.status » ('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 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 15250 matching lines...) Expand 10 before | Expand all | Expand 10 after
15261 15261
15262 // TODO(mstarzinger): These are place-holder stubs for TurboFan and will 15262 // TODO(mstarzinger): These are place-holder stubs for TurboFan and will
15263 // eventually all have a C++ implementation and this macro will be gone. 15263 // eventually all have a C++ implementation and this macro will be gone.
15264 #define U(name) \ 15264 #define U(name) \
15265 RUNTIME_FUNCTION(RuntimeReference_##name) { \ 15265 RUNTIME_FUNCTION(RuntimeReference_##name) { \
15266 UNIMPLEMENTED(); \ 15266 UNIMPLEMENTED(); \
15267 return NULL; \ 15267 return NULL; \
15268 } 15268 }
15269 15269
15270 U(IsStringWrapperSafeForDefaultValueOf) 15270 U(IsStringWrapperSafeForDefaultValueOf)
15271 U(GeneratorNext)
15272 U(GeneratorThrow)
15273 U(DebugBreakInOptimizedCode) 15271 U(DebugBreakInOptimizedCode)
15274 15272
15275 #undef U 15273 #undef U
15276 15274
15277 15275
15278 RUNTIME_FUNCTION(RuntimeReference_IsSmi) { 15276 RUNTIME_FUNCTION(RuntimeReference_IsSmi) {
15279 SealHandleScope shs(isolate); 15277 SealHandleScope shs(isolate);
15280 DCHECK(args.length() == 1); 15278 DCHECK(args.length() == 1);
15281 CONVERT_ARG_CHECKED(Object, obj, 0); 15279 CONVERT_ARG_CHECKED(Object, obj, 0);
15282 return isolate->heap()->ToBoolean(obj->IsSmi()); 15280 return isolate->heap()->ToBoolean(obj->IsSmi());
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
15493 } 15491 }
15494 15492
15495 15493
15496 RUNTIME_FUNCTION(RuntimeReference_FastAsciiArrayJoin) { 15494 RUNTIME_FUNCTION(RuntimeReference_FastAsciiArrayJoin) {
15497 SealHandleScope shs(isolate); 15495 SealHandleScope shs(isolate);
15498 DCHECK(args.length() == 2); 15496 DCHECK(args.length() == 2);
15499 return isolate->heap()->undefined_value(); 15497 return isolate->heap()->undefined_value();
15500 } 15498 }
15501 15499
15502 15500
15501 RUNTIME_FUNCTION(RuntimeReference_GeneratorNext) {
15502 UNREACHABLE(); // Optimization disabled in SetUpGenerators().
15503 return NULL;
15504 }
15505
15506
15507 RUNTIME_FUNCTION(RuntimeReference_GeneratorThrow) {
15508 UNREACHABLE(); // Optimization disabled in SetUpGenerators().
15509 return NULL;
15510 }
15511
15512
15503 RUNTIME_FUNCTION(RuntimeReference_ClassOf) { 15513 RUNTIME_FUNCTION(RuntimeReference_ClassOf) {
15504 SealHandleScope shs(isolate); 15514 SealHandleScope shs(isolate);
15505 DCHECK(args.length() == 1); 15515 DCHECK(args.length() == 1);
15506 CONVERT_ARG_CHECKED(Object, obj, 0); 15516 CONVERT_ARG_CHECKED(Object, obj, 0);
15507 if (!obj->IsJSReceiver()) return isolate->heap()->null_value(); 15517 if (!obj->IsJSReceiver()) return isolate->heap()->null_value();
15508 return JSReceiver::cast(obj)->class_name(); 15518 return JSReceiver::cast(obj)->class_name();
15509 } 15519 }
15510 15520
15511 15521
15512 RUNTIME_FUNCTION(RuntimeReference_StringCharCodeAt) { 15522 RUNTIME_FUNCTION(RuntimeReference_StringCharCodeAt) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
15647 } 15657 }
15648 return NULL; 15658 return NULL;
15649 } 15659 }
15650 15660
15651 15661
15652 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15662 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15653 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15663 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15654 } 15664 }
15655 15665
15656 } } // namespace v8::internal 15666 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/generator.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698