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

Side by Side Diff: src/isolate.h

Issue 7830036: Optimize isFinite and isNaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Made the change general by moving putting it in the NUMBER_IS_FINITE macro. Created 9 years, 3 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/heap.h ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 29 matching lines...) Expand all
40 #include "handles.h" 40 #include "handles.h"
41 #include "heap.h" 41 #include "heap.h"
42 #include "regexp-stack.h" 42 #include "regexp-stack.h"
43 #include "runtime-profiler.h" 43 #include "runtime-profiler.h"
44 #include "runtime.h" 44 #include "runtime.h"
45 #include "zone.h" 45 #include "zone.h"
46 46
47 namespace v8 { 47 namespace v8 {
48 namespace internal { 48 namespace internal {
49 49
50 class AstSentinels;
50 class Bootstrapper; 51 class Bootstrapper;
51 class CodeGenerator; 52 class CodeGenerator;
52 class CodeRange; 53 class CodeRange;
53 class CompilationCache; 54 class CompilationCache;
54 class ContextSlotCache; 55 class ContextSlotCache;
55 class ContextSwitcher; 56 class ContextSwitcher;
56 class Counters; 57 class Counters;
57 class CpuFeatures; 58 class CpuFeatures;
58 class CpuProfiler; 59 class CpuProfiler;
59 class DeoptimizerData; 60 class DeoptimizerData;
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 } 871 }
871 872
872 StringInputBuffer* objects_string_compare_buffer_b() { 873 StringInputBuffer* objects_string_compare_buffer_b() {
873 return &objects_string_compare_buffer_b_; 874 return &objects_string_compare_buffer_b_;
874 } 875 }
875 876
876 StaticResource<StringInputBuffer>* objects_string_input_buffer() { 877 StaticResource<StringInputBuffer>* objects_string_input_buffer() {
877 return &objects_string_input_buffer_; 878 return &objects_string_input_buffer_;
878 } 879 }
879 880
881 AstSentinels* ast_sentinels() { return ast_sentinels_; }
882
880 RuntimeState* runtime_state() { return &runtime_state_; } 883 RuntimeState* runtime_state() { return &runtime_state_; }
881 884
882 StaticResource<SafeStringInputBuffer>* compiler_safe_string_input_buffer() { 885 StaticResource<SafeStringInputBuffer>* compiler_safe_string_input_buffer() {
883 return &compiler_safe_string_input_buffer_; 886 return &compiler_safe_string_input_buffer_;
884 } 887 }
885 888
886 Builtins* builtins() { return &builtins_; } 889 Builtins* builtins() { return &builtins_; }
887 890
888 unibrow::Mapping<unibrow::Ecma262Canonicalize>* 891 unibrow::Mapping<unibrow::Ecma262Canonicalize>*
889 regexp_macro_assembler_canonicalize() { 892 regexp_macro_assembler_canonicalize() {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 UnicodeCache* unicode_cache_; 1131 UnicodeCache* unicode_cache_;
1129 Zone zone_; 1132 Zone zone_;
1130 PreallocatedStorage in_use_list_; 1133 PreallocatedStorage in_use_list_;
1131 PreallocatedStorage free_list_; 1134 PreallocatedStorage free_list_;
1132 bool preallocated_storage_preallocated_; 1135 bool preallocated_storage_preallocated_;
1133 PcToCodeCache* pc_to_code_cache_; 1136 PcToCodeCache* pc_to_code_cache_;
1134 StringInputBuffer* write_input_buffer_; 1137 StringInputBuffer* write_input_buffer_;
1135 GlobalHandles* global_handles_; 1138 GlobalHandles* global_handles_;
1136 ContextSwitcher* context_switcher_; 1139 ContextSwitcher* context_switcher_;
1137 ThreadManager* thread_manager_; 1140 ThreadManager* thread_manager_;
1141 AstSentinels* ast_sentinels_;
1138 RuntimeState runtime_state_; 1142 RuntimeState runtime_state_;
1139 StaticResource<SafeStringInputBuffer> compiler_safe_string_input_buffer_; 1143 StaticResource<SafeStringInputBuffer> compiler_safe_string_input_buffer_;
1140 Builtins builtins_; 1144 Builtins builtins_;
1141 StringTracker* string_tracker_; 1145 StringTracker* string_tracker_;
1142 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; 1146 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_;
1143 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; 1147 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_;
1144 StringInputBuffer objects_string_compare_buffer_a_; 1148 StringInputBuffer objects_string_compare_buffer_a_;
1145 StringInputBuffer objects_string_compare_buffer_b_; 1149 StringInputBuffer objects_string_compare_buffer_b_;
1146 StaticResource<StringInputBuffer> objects_string_input_buffer_; 1150 StaticResource<StringInputBuffer> objects_string_input_buffer_;
1147 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1151 unibrow::Mapping<unibrow::Ecma262Canonicalize>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 1357
1354 // Mark the global context with out of memory. 1358 // Mark the global context with out of memory.
1355 inline void Context::mark_out_of_memory() { 1359 inline void Context::mark_out_of_memory() {
1356 global_context()->set_out_of_memory(HEAP->true_value()); 1360 global_context()->set_out_of_memory(HEAP->true_value());
1357 } 1361 }
1358 1362
1359 1363
1360 } } // namespace v8::internal 1364 } } // namespace v8::internal
1361 1365
1362 #endif // V8_ISOLATE_H_ 1366 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698