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

Side by Side Diff: src/isolate.h

Issue 1109343004: Wrap v8natives.js into a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: alpha sort Created 5 years, 7 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/i18n.js ('k') | src/isolate.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 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 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include "include/v8-debug.h" 9 #include "include/v8-debug.h"
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 bool IsInternallyUsedPropertyName(Object* name); 742 bool IsInternallyUsedPropertyName(Object* name);
743 743
744 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); 744 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback);
745 void ReportFailedAccessCheck(Handle<JSObject> receiver); 745 void ReportFailedAccessCheck(Handle<JSObject> receiver);
746 746
747 // Exception throwing support. The caller should use the result 747 // Exception throwing support. The caller should use the result
748 // of Throw() as its return value. 748 // of Throw() as its return value.
749 Object* Throw(Object* exception, MessageLocation* location = NULL); 749 Object* Throw(Object* exception, MessageLocation* location = NULL);
750 Object* ThrowIllegalOperation(); 750 Object* ThrowIllegalOperation();
751 751
752 void ReportBootstrappingException(Handle<Object> exception,
753 MessageLocation* location);
754
752 template <typename T> 755 template <typename T>
753 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, 756 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception,
754 MessageLocation* location = NULL) { 757 MessageLocation* location = NULL) {
755 Throw(*exception, location); 758 Throw(*exception, location);
756 return MaybeHandle<T>(); 759 return MaybeHandle<T>();
757 } 760 }
758 761
759 // Re-throw an exception. This involves no error reporting since error 762 // Re-throw an exception. This involves no error reporting since error
760 // reporting was handled when the exception was thrown originally. 763 // reporting was handled when the exception was thrown originally.
761 Object* ReThrow(Object* exception); 764 Object* ReThrow(Object* exception);
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 } 1600 }
1598 1601
1599 EmbeddedVector<char, 128> filename_; 1602 EmbeddedVector<char, 128> filename_;
1600 FILE* file_; 1603 FILE* file_;
1601 int scope_depth_; 1604 int scope_depth_;
1602 }; 1605 };
1603 1606
1604 } } // namespace v8::internal 1607 } } // namespace v8::internal
1605 1608
1606 #endif // V8_ISOLATE_H_ 1609 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/i18n.js ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698