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

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

Issue 1543723002: Add web compat workarounds for ES2015 RegExp semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test expectations for new workaround Created 4 years, 12 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
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 "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 HandleScope scope(isolate); 453 HandleScope scope(isolate);
454 DCHECK_EQ(1, args.length()); 454 DCHECK_EQ(1, args.length());
455 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 455 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
456 Handle<FixedArray> result; 456 Handle<FixedArray> result;
457 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 457 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
458 isolate, result, 458 isolate, result,
459 Object::CreateListFromArrayLike(isolate, object, ElementTypes::kAll)); 459 Object::CreateListFromArrayLike(isolate, object, ElementTypes::kAll));
460 return *result; 460 return *result;
461 } 461 }
462 462
463
464 RUNTIME_FUNCTION(Runtime_IncrementUseCounter) {
465 HandleScope scope(isolate);
466 DCHECK_EQ(1, args.length());
467 CONVERT_SMI_ARG_CHECKED(counter, 0);
468 isolate->CountUsage(static_cast<v8::Isolate::UseCounterFeature>(counter));
469 return isolate->heap()->undefined_value();
470 }
471
463 } // namespace internal 472 } // namespace internal
464 } // namespace v8 473 } // namespace v8
OLDNEW
« src/js/regexp.js ('K') | « src/runtime/runtime.h ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698