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

Side by Side Diff: src/isolate.h

Issue 15014020: Elide hole checks on KeyedLoads of holey double arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement missing platforms and add tests Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/ic.cc ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')
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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 inline type* name() { \ 828 inline type* name() { \
829 ASSERT(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \ 829 ASSERT(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
830 return &(name##_)[0]; \ 830 return &(name##_)[0]; \
831 } 831 }
832 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_ACCESSOR) 832 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_ACCESSOR)
833 #undef GLOBAL_ARRAY_ACCESSOR 833 #undef GLOBAL_ARRAY_ACCESSOR
834 834
835 #define NATIVE_CONTEXT_FIELD_ACCESSOR(index, type, name) \ 835 #define NATIVE_CONTEXT_FIELD_ACCESSOR(index, type, name) \
836 Handle<type> name() { \ 836 Handle<type> name() { \
837 return Handle<type>(context()->native_context()->name(), this); \ 837 return Handle<type>(context()->native_context()->name(), this); \
838 } \
839 bool is_##name(type* value) { \
840 return context()->native_context()->is_##name(value); \
838 } 841 }
839 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) 842 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR)
840 #undef NATIVE_CONTEXT_FIELD_ACCESSOR 843 #undef NATIVE_CONTEXT_FIELD_ACCESSOR
841 844
842 Bootstrapper* bootstrapper() { return bootstrapper_; } 845 Bootstrapper* bootstrapper() { return bootstrapper_; }
843 Counters* counters() { 846 Counters* counters() {
844 // Call InitializeLoggingAndCounters() if logging is needed before 847 // Call InitializeLoggingAndCounters() if logging is needed before
845 // the isolate is fully initialized. 848 // the isolate is fully initialized.
846 ASSERT(counters_ != NULL); 849 ASSERT(counters_ != NULL);
847 return counters_; 850 return counters_;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 return date_cache_; 1063 return date_cache_;
1061 } 1064 }
1062 1065
1063 void set_date_cache(DateCache* date_cache) { 1066 void set_date_cache(DateCache* date_cache) {
1064 if (date_cache != date_cache_) { 1067 if (date_cache != date_cache_) {
1065 delete date_cache_; 1068 delete date_cache_;
1066 } 1069 }
1067 date_cache_ = date_cache; 1070 date_cache_ = date_cache;
1068 } 1071 }
1069 1072
1073 Map* get_initial_js_array_map(ElementsKind kind);
1074
1075 bool IsFastArrayConstructorPrototypeChainIntact();
1076
1070 CodeStubInterfaceDescriptor* 1077 CodeStubInterfaceDescriptor*
1071 code_stub_interface_descriptor(int index); 1078 code_stub_interface_descriptor(int index);
1072 1079
1073 void IterateDeferredHandles(ObjectVisitor* visitor); 1080 void IterateDeferredHandles(ObjectVisitor* visitor);
1074 void LinkDeferredHandles(DeferredHandles* deferred_handles); 1081 void LinkDeferredHandles(DeferredHandles* deferred_handles);
1075 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); 1082 void UnlinkDeferredHandles(DeferredHandles* deferred_handles);
1076 1083
1077 #ifdef DEBUG 1084 #ifdef DEBUG
1078 bool IsDeferredHandle(Object** location); 1085 bool IsDeferredHandle(Object** location);
1079 #endif // DEBUG 1086 #endif // DEBUG
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 1489
1483 // Mark the native context with out of memory. 1490 // Mark the native context with out of memory.
1484 inline void Context::mark_out_of_memory() { 1491 inline void Context::mark_out_of_memory() {
1485 native_context()->set_out_of_memory(HEAP->true_value()); 1492 native_context()->set_out_of_memory(HEAP->true_value());
1486 } 1493 }
1487 1494
1488 1495
1489 } } // namespace v8::internal 1496 } } // namespace v8::internal
1490 1497
1491 #endif // V8_ISOLATE_H_ 1498 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698