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

Side by Side Diff: src/runtime/runtime-internal.cc

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: georg's comments Created 4 years 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
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/compiler/test-loop-assignment-analysis.cc » ('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 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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { 203 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
204 HandleScope scope(isolate); 204 HandleScope scope(isolate);
205 DCHECK(args.length() == 1); 205 DCHECK(args.length() == 1);
206 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); 206 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0);
207 THROW_NEW_ERROR_RETURN_FAILURE( 207 THROW_NEW_ERROR_RETURN_FAILURE(
208 isolate, 208 isolate,
209 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); 209 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value));
210 } 210 }
211 211
212 RUNTIME_FUNCTION(Runtime_ThrowSymbolIteratorInvalid) {
213 HandleScope scope(isolate);
214 DCHECK(args.length() == 0);
215 THROW_NEW_ERROR_RETURN_FAILURE(
216 isolate, NewTypeError(MessageTemplate::kSymbolIteratorInvalid));
217 }
218
212 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { 219 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) {
213 HandleScope scope(isolate); 220 HandleScope scope(isolate);
214 DCHECK_EQ(1, args.length()); 221 DCHECK_EQ(1, args.length());
215 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); 222 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0);
216 THROW_NEW_ERROR_RETURN_FAILURE( 223 THROW_NEW_ERROR_RETURN_FAILURE(
217 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); 224 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0));
218 } 225 }
219 226
220 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { 227 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) {
221 HandleScope scope(isolate); 228 HandleScope scope(isolate);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 479
473 RUNTIME_FUNCTION(Runtime_Typeof) { 480 RUNTIME_FUNCTION(Runtime_Typeof) {
474 HandleScope scope(isolate); 481 HandleScope scope(isolate);
475 DCHECK_EQ(1, args.length()); 482 DCHECK_EQ(1, args.length());
476 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 483 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
477 return *Object::TypeOf(isolate, object); 484 return *Object::TypeOf(isolate, object);
478 } 485 }
479 486
480 } // namespace internal 487 } // namespace internal
481 } // namespace v8 488 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/compiler/test-loop-assignment-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698