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

Side by Side Diff: src/api.h

Issue 2803903002: Revert of [snapshot] Move builtins generation into mksnapshot (Closed)
Patch Set: rebased Created 3 years, 8 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/DEPS ('k') | src/api.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_API_H_ 5 #ifndef V8_API_H_
6 #define V8_API_H_ 6 #define V8_API_H_
7 7
8 #include "include/v8-testing.h" 8 #include "include/v8-testing.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 #include "src/debug/debug-interface.h" 10 #include "src/debug/debug-interface.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 (*reinterpret_cast<v8::internal::Object* const*>(that))->Is##To()); \ 340 (*reinterpret_cast<v8::internal::Object* const*>(that))->Is##To()); \
341 return v8::internal::Handle<v8::internal::To>( \ 341 return v8::internal::Handle<v8::internal::To>( \
342 reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \ 342 reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \
343 } 343 }
344 344
345 OPEN_HANDLE_LIST(MAKE_OPEN_HANDLE) 345 OPEN_HANDLE_LIST(MAKE_OPEN_HANDLE)
346 346
347 #undef MAKE_OPEN_HANDLE 347 #undef MAKE_OPEN_HANDLE
348 #undef OPEN_HANDLE_LIST 348 #undef OPEN_HANDLE_LIST
349 349
350 extern Isolate* IsolateNewImpl(internal::Isolate* isolate,
351 const Isolate::CreateParams& params);
352 350
353 namespace internal { 351 namespace internal {
354 352
355 class V8_EXPORT_PRIVATE DeferredHandles { 353 class V8_EXPORT_PRIVATE DeferredHandles {
356 public: 354 public:
357 ~DeferredHandles(); 355 ~DeferredHandles();
358 356
359 private: 357 private:
360 DeferredHandles(Object** first_block_limit, Isolate* isolate) 358 DeferredHandles(Object** first_block_limit, Isolate* isolate)
361 : next_(NULL), 359 : next_(NULL),
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 #endif 638 #endif
641 if (spare_ != NULL) { 639 if (spare_ != NULL) {
642 DeleteArray(spare_); 640 DeleteArray(spare_);
643 } 641 }
644 spare_ = block_start; 642 spare_ = block_start;
645 } 643 }
646 DCHECK((blocks_.is_empty() && prev_limit == NULL) || 644 DCHECK((blocks_.is_empty() && prev_limit == NULL) ||
647 (!blocks_.is_empty() && prev_limit != NULL)); 645 (!blocks_.is_empty() && prev_limit != NULL));
648 } 646 }
649 647
648
650 // Interceptor functions called from generated inline caches to notify 649 // Interceptor functions called from generated inline caches to notify
651 // CPU profiler that external callbacks are invoked. 650 // CPU profiler that external callbacks are invoked.
652 void InvokeAccessorGetterCallback( 651 void InvokeAccessorGetterCallback(
653 v8::Local<v8::Name> property, 652 v8::Local<v8::Name> property,
654 const v8::PropertyCallbackInfo<v8::Value>& info, 653 const v8::PropertyCallbackInfo<v8::Value>& info,
655 v8::AccessorNameGetterCallback getter); 654 v8::AccessorNameGetterCallback getter);
656 655
657 void InvokeFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& info, 656 void InvokeFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& info,
658 v8::FunctionCallback callback); 657 v8::FunctionCallback callback);
659 658
660 class Testing { 659 class Testing {
661 public: 660 public:
662 static v8::Testing::StressType stress_type() { return stress_type_; } 661 static v8::Testing::StressType stress_type() { return stress_type_; }
663 static void set_stress_type(v8::Testing::StressType stress_type) { 662 static void set_stress_type(v8::Testing::StressType stress_type) {
664 stress_type_ = stress_type; 663 stress_type_ = stress_type;
665 } 664 }
666 665
667 private: 666 private:
668 static v8::Testing::StressType stress_type_; 667 static v8::Testing::StressType stress_type_;
669 }; 668 };
670 669
671 } // namespace internal 670 } // namespace internal
672 } // namespace v8 671 } // namespace v8
673 672
674 #endif // V8_API_H_ 673 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « src/DEPS ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698