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

Side by Side Diff: src/api.h

Issue 351573002: Make Object::IsFoo const. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback. Rebased. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « include/v8.h ('k') | src/objects.h » ('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 "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "include/v8-testing.h" 10 #include "include/v8-testing.h"
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 #undef MAKE_TO_LOCAL 363 #undef MAKE_TO_LOCAL
364 364
365 365
366 // Implementations of OpenHandle 366 // Implementations of OpenHandle
367 367
368 #define MAKE_OPEN_HANDLE(From, To) \ 368 #define MAKE_OPEN_HANDLE(From, To) \
369 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \ 369 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \
370 const v8::From* that, bool allow_empty_handle) { \ 370 const v8::From* that, bool allow_empty_handle) { \
371 EXTRA_CHECK(allow_empty_handle || that != NULL); \ 371 EXTRA_CHECK(allow_empty_handle || that != NULL); \
372 EXTRA_CHECK(that == NULL || \ 372 EXTRA_CHECK(that == NULL || \
373 (*reinterpret_cast<v8::internal::Object**>( \ 373 (*reinterpret_cast<v8::internal::Object* const*>(that))->Is##To()); \
374 const_cast<v8::From*>(that)))->Is##To()); \
375 return v8::internal::Handle<v8::internal::To>( \ 374 return v8::internal::Handle<v8::internal::To>( \
376 reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \ 375 reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \
377 } 376 }
378 377
379 OPEN_HANDLE_LIST(MAKE_OPEN_HANDLE) 378 OPEN_HANDLE_LIST(MAKE_OPEN_HANDLE)
380 379
381 #undef MAKE_OPEN_HANDLE 380 #undef MAKE_OPEN_HANDLE
382 #undef OPEN_HANDLE_LIST 381 #undef OPEN_HANDLE_LIST
383 382
384 383
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 stress_type_ = stress_type; 685 stress_type_ = stress_type;
687 } 686 }
688 687
689 private: 688 private:
690 static v8::Testing::StressType stress_type_; 689 static v8::Testing::StressType stress_type_;
691 }; 690 };
692 691
693 } } // namespace v8::internal 692 } } // namespace v8::internal
694 693
695 #endif // V8_API_H_ 694 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698