| 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  |     5  | 
|     6 // Defined when linking against shared lib on Windows. |     6 // Defined when linking against shared lib on Windows. | 
|     7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) |     7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) | 
|     8 #define V8_SHARED |     8 #define V8_SHARED | 
|     9 #endif |     9 #endif | 
|    10  |    10  | 
| (...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1631   if (i::FLAG_gdbjit) { |  1631   if (i::FLAG_gdbjit) { | 
|  1632     create_params.code_event_handler = i::GDBJITInterface::EventHandler; |  1632     create_params.code_event_handler = i::GDBJITInterface::EventHandler; | 
|  1633   } |  1633   } | 
|  1634 #endif |  1634 #endif | 
|  1635 #ifdef ENABLE_VTUNE_JIT_INTERFACE |  1635 #ifdef ENABLE_VTUNE_JIT_INTERFACE | 
|  1636   create_params.code_event_handler = vTune::GetVtuneCodeEventHandler(); |  1636   create_params.code_event_handler = vTune::GetVtuneCodeEventHandler(); | 
|  1637 #endif |  1637 #endif | 
|  1638 #ifndef V8_SHARED |  1638 #ifndef V8_SHARED | 
|  1639   create_params.constraints.ConfigureDefaults( |  1639   create_params.constraints.ConfigureDefaults( | 
|  1640       base::SysInfo::AmountOfPhysicalMemory(), |  1640       base::SysInfo::AmountOfPhysicalMemory(), | 
|  1641       base::SysInfo::AmountOfVirtualMemory(), |  1641       base::SysInfo::AmountOfVirtualMemory()); | 
|  1642       base::SysInfo::NumberOfProcessors()); |  | 
|  1643  |  1642  | 
|  1644   Shell::counter_map_ = new CounterMap(); |  1643   Shell::counter_map_ = new CounterMap(); | 
|  1645   if (i::FLAG_dump_counters || i::FLAG_track_gc_object_stats) { |  1644   if (i::FLAG_dump_counters || i::FLAG_track_gc_object_stats) { | 
|  1646     create_params.counter_lookup_callback = LookupCounter; |  1645     create_params.counter_lookup_callback = LookupCounter; | 
|  1647     create_params.create_histogram_callback = CreateHistogram; |  1646     create_params.create_histogram_callback = CreateHistogram; | 
|  1648     create_params.add_histogram_sample_callback = AddHistogramSample; |  1647     create_params.add_histogram_sample_callback = AddHistogramSample; | 
|  1649   } |  1648   } | 
|  1650 #endif |  1649 #endif | 
|  1651   Isolate* isolate = Isolate::New(create_params); |  1650   Isolate* isolate = Isolate::New(create_params); | 
|  1652   DumbLineEditor dumb_line_editor(isolate); |  1651   DumbLineEditor dumb_line_editor(isolate); | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1718 } |  1717 } | 
|  1719  |  1718  | 
|  1720 }  // namespace v8 |  1719 }  // namespace v8 | 
|  1721  |  1720  | 
|  1722  |  1721  | 
|  1723 #ifndef GOOGLE3 |  1722 #ifndef GOOGLE3 | 
|  1724 int main(int argc, char* argv[]) { |  1723 int main(int argc, char* argv[]) { | 
|  1725   return v8::Shell::Main(argc, argv); |  1724   return v8::Shell::Main(argc, argv); | 
|  1726 } |  1725 } | 
|  1727 #endif |  1726 #endif | 
| OLD | NEW |