OLD | NEW |
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 #include <errno.h> | 5 #include <errno.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2847 } | 2847 } |
2848 create_params.array_buffer_allocator = Shell::array_buffer_allocator; | 2848 create_params.array_buffer_allocator = Shell::array_buffer_allocator; |
2849 #ifdef ENABLE_VTUNE_JIT_INTERFACE | 2849 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
2850 create_params.code_event_handler = vTune::GetVtuneCodeEventHandler(); | 2850 create_params.code_event_handler = vTune::GetVtuneCodeEventHandler(); |
2851 #endif | 2851 #endif |
2852 create_params.constraints.ConfigureDefaults( | 2852 create_params.constraints.ConfigureDefaults( |
2853 base::SysInfo::AmountOfPhysicalMemory(), | 2853 base::SysInfo::AmountOfPhysicalMemory(), |
2854 base::SysInfo::AmountOfVirtualMemory()); | 2854 base::SysInfo::AmountOfVirtualMemory()); |
2855 | 2855 |
2856 Shell::counter_map_ = new CounterMap(); | 2856 Shell::counter_map_ = new CounterMap(); |
2857 if (i::FLAG_dump_counters || i::FLAG_track_gc_object_stats) { | 2857 if (i::FLAG_dump_counters || i::FLAG_gc_stats) { |
2858 create_params.counter_lookup_callback = LookupCounter; | 2858 create_params.counter_lookup_callback = LookupCounter; |
2859 create_params.create_histogram_callback = CreateHistogram; | 2859 create_params.create_histogram_callback = CreateHistogram; |
2860 create_params.add_histogram_sample_callback = AddHistogramSample; | 2860 create_params.add_histogram_sample_callback = AddHistogramSample; |
2861 } | 2861 } |
2862 | 2862 |
2863 Isolate* isolate = Isolate::New(create_params); | 2863 Isolate* isolate = Isolate::New(create_params); |
2864 { | 2864 { |
2865 Isolate::Scope scope(isolate); | 2865 Isolate::Scope scope(isolate); |
2866 Initialize(isolate); | 2866 Initialize(isolate); |
2867 PerIsolateData data(isolate); | 2867 PerIsolateData data(isolate); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2946 } | 2946 } |
2947 | 2947 |
2948 } // namespace v8 | 2948 } // namespace v8 |
2949 | 2949 |
2950 | 2950 |
2951 #ifndef GOOGLE3 | 2951 #ifndef GOOGLE3 |
2952 int main(int argc, char* argv[]) { | 2952 int main(int argc, char* argv[]) { |
2953 return v8::Shell::Main(argc, argv); | 2953 return v8::Shell::Main(argc, argv); |
2954 } | 2954 } |
2955 #endif | 2955 #endif |
OLD | NEW |