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

Side by Side Diff: src/isolate.cc

Issue 2773063002: [wasm] Override mechanism for wasm js APIs (Closed)
Patch Set: Created 3 years, 9 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 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/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 426
427 Handle<String> key = isolate->factory()->stackTraceLimit_string(); 427 Handle<String> key = isolate->factory()->stackTraceLimit_string();
428 Handle<Object> stack_trace_limit = JSReceiver::GetDataProperty(error, key); 428 Handle<Object> stack_trace_limit = JSReceiver::GetDataProperty(error, key);
429 if (!stack_trace_limit->IsNumber()) return false; 429 if (!stack_trace_limit->IsNumber()) return false;
430 430
431 // Ensure that limit is not negative. 431 // Ensure that limit is not negative.
432 *result = Max(FastD2IChecked(stack_trace_limit->Number()), 0); 432 *result = Max(FastD2IChecked(stack_trace_limit->Number()), 0);
433 return true; 433 return true;
434 } 434 }
435 435
436 bool NoExtension(const v8::FunctionCallbackInfo<v8::Value>&) { return false; }
436 } // namespace 437 } // namespace
437 438
438 Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSReceiver> error_object, 439 Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSReceiver> error_object,
439 FrameSkipMode mode, 440 FrameSkipMode mode,
440 Handle<Object> caller) { 441 Handle<Object> caller) {
441 DisallowJavascriptExecution no_js(this); 442 DisallowJavascriptExecution no_js(this);
442 443
443 int limit; 444 int limit;
444 if (!GetStackTraceLimit(this, &limit)) return factory()->undefined_value(); 445 if (!GetStackTraceLimit(this, &limit)) return factory()->undefined_value();
445 446
(...skipping 3283 matching lines...) Expand 10 before | Expand all | Expand 10 after
3729 // Then check whether this scope intercepts. 3730 // Then check whether this scope intercepts.
3730 if ((flag & intercept_mask_)) { 3731 if ((flag & intercept_mask_)) {
3731 intercepted_flags_ |= flag; 3732 intercepted_flags_ |= flag;
3732 return true; 3733 return true;
3733 } 3734 }
3734 return false; 3735 return false;
3735 } 3736 }
3736 3737
3737 } // namespace internal 3738 } // namespace internal
3738 } // namespace v8 3739 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698