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

Side by Side Diff: src/api.cc

Issue 1314863002: Version 4.5.103.27 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.5
Patch Set: Created 5 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
« no previous file with comments | « samples/shell.cc ('k') | src/d8.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 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 "src/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "src/property.h" 42 #include "src/property.h"
43 #include "src/property-details.h" 43 #include "src/property-details.h"
44 #include "src/prototype.h" 44 #include "src/prototype.h"
45 #include "src/runtime/runtime.h" 45 #include "src/runtime/runtime.h"
46 #include "src/runtime-profiler.h" 46 #include "src/runtime-profiler.h"
47 #include "src/sampler.h" 47 #include "src/sampler.h"
48 #include "src/scanner-character-streams.h" 48 #include "src/scanner-character-streams.h"
49 #include "src/simulator.h" 49 #include "src/simulator.h"
50 #include "src/snapshot/natives.h" 50 #include "src/snapshot/natives.h"
51 #include "src/snapshot/snapshot.h" 51 #include "src/snapshot/snapshot.h"
52 #include "src/startup-data-util.h"
52 #include "src/unicode-inl.h" 53 #include "src/unicode-inl.h"
53 #include "src/v8threads.h" 54 #include "src/v8threads.h"
54 #include "src/version.h" 55 #include "src/version.h"
55 #include "src/vm-state-inl.h" 56 #include "src/vm-state-inl.h"
56 57
57 58
58 namespace v8 { 59 namespace v8 {
59 60
60 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) 61 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr))
61 62
(...skipping 5329 matching lines...) Expand 10 before | Expand all | Expand 10 after
5391 space_available_size_(0), 5392 space_available_size_(0),
5392 physical_space_size_(0) { } 5393 physical_space_size_(0) { }
5393 5394
5394 5395
5395 HeapObjectStatistics::HeapObjectStatistics() 5396 HeapObjectStatistics::HeapObjectStatistics()
5396 : object_type_(nullptr), 5397 : object_type_(nullptr),
5397 object_sub_type_(nullptr), 5398 object_sub_type_(nullptr),
5398 object_count_(0), 5399 object_count_(0),
5399 object_size_(0) {} 5400 object_size_(0) {}
5400 5401
5402
5401 bool v8::V8::InitializeICU(const char* icu_data_file) { 5403 bool v8::V8::InitializeICU(const char* icu_data_file) {
5402 return i::InitializeICU(icu_data_file); 5404 return i::InitializeICU(icu_data_file);
5403 } 5405 }
5404 5406
5405 5407
5408 void v8::V8::InitializeExternalStartupData(const char* directory_path) {
5409 i::InitializeExternalStartupData(directory_path);
5410 }
5411
5412
5413 void v8::V8::InitializeExternalStartupData(const char* natives_blob,
5414 const char* snapshot_blob) {
5415 i::InitializeExternalStartupData(natives_blob, snapshot_blob);
5416 }
5417
5418
5406 const char* v8::V8::GetVersion() { 5419 const char* v8::V8::GetVersion() {
5407 return i::Version::GetVersion(); 5420 return i::Version::GetVersion();
5408 } 5421 }
5409 5422
5410 5423
5411 static i::Handle<i::Context> CreateEnvironment( 5424 static i::Handle<i::Context> CreateEnvironment(
5412 i::Isolate* isolate, v8::ExtensionConfiguration* extensions, 5425 i::Isolate* isolate, v8::ExtensionConfiguration* extensions,
5413 v8::Local<ObjectTemplate> global_template, 5426 v8::Local<ObjectTemplate> global_template,
5414 v8::Local<Value> maybe_global_proxy) { 5427 v8::Local<Value> maybe_global_proxy) {
5415 i::Handle<i::Context> env; 5428 i::Handle<i::Context> env;
(...skipping 2995 matching lines...) Expand 10 before | Expand all | Expand 10 after
8411 Address callback_address = 8424 Address callback_address =
8412 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 8425 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
8413 VMState<EXTERNAL> state(isolate); 8426 VMState<EXTERNAL> state(isolate);
8414 ExternalCallbackScope call_scope(isolate, callback_address); 8427 ExternalCallbackScope call_scope(isolate, callback_address);
8415 callback(info); 8428 callback(info);
8416 } 8429 }
8417 8430
8418 8431
8419 } // namespace internal 8432 } // namespace internal
8420 } // namespace v8 8433 } // namespace v8
OLDNEW
« no previous file with comments | « samples/shell.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698