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

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

Issue 2357433002: Revert of [crankshaft] Protect against deopt loops from string length overflows. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « src/isolate-inl.h ('k') | test/mjsunit/regress/regress-5404.js » ('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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 DCHECK_EQ(2, args.length()); 227 DCHECK_EQ(2, args.length());
228 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); 228 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0);
229 CONVERT_ARG_HANDLE_CHECKED(Object, arg1, 1); 229 CONVERT_ARG_HANDLE_CHECKED(Object, arg1, 1);
230 THROW_NEW_ERROR_RETURN_FAILURE( 230 THROW_NEW_ERROR_RETURN_FAILURE(
231 isolate, 231 isolate,
232 NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1)); 232 NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1));
233 } 233 }
234 234
235 RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) { 235 RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) {
236 HandleScope scope(isolate); 236 HandleScope scope(isolate);
237 THROW_NEW_ERROR_RETURN_FAILURE(isolate, NewInvalidStringLengthError()); 237 THROW_NEW_ERROR_RETURN_FAILURE(
238 isolate, NewRangeError(MessageTemplate::kInvalidStringLength));
238 } 239 }
239 240
240 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { 241 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
241 HandleScope scope(isolate); 242 HandleScope scope(isolate);
242 DCHECK(args.length() == 1); 243 DCHECK(args.length() == 1);
243 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); 244 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0);
244 THROW_NEW_ERROR_RETURN_FAILURE( 245 THROW_NEW_ERROR_RETURN_FAILURE(
245 isolate, 246 isolate,
246 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); 247 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value));
247 } 248 }
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 590
590 RUNTIME_FUNCTION(Runtime_Typeof) { 591 RUNTIME_FUNCTION(Runtime_Typeof) {
591 HandleScope scope(isolate); 592 HandleScope scope(isolate);
592 DCHECK_EQ(1, args.length()); 593 DCHECK_EQ(1, args.length());
593 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 594 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
594 return *Object::TypeOf(isolate, object); 595 return *Object::TypeOf(isolate, object);
595 } 596 }
596 597
597 } // namespace internal 598 } // namespace internal
598 } // namespace v8 599 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate-inl.h ('k') | test/mjsunit/regress/regress-5404.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698