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

Side by Side Diff: src/d8.cc

Issue 866843003: Contribution of PowerPC port (continuation of 422063005) - AIX Common1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address second set of comments Created 5 years, 10 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 | « src/codegen.cc ('k') | src/d8.gyp » ('j') | src/serialize.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 // 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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 void* data = AllocateUninitialized(length); 1532 void* data = AllocateUninitialized(length);
1533 return data == NULL ? data : memset(data, 0, length); 1533 return data == NULL ? data : memset(data, 0, length);
1534 } 1534 }
1535 virtual void* AllocateUninitialized(size_t length) { return malloc(length); } 1535 virtual void* AllocateUninitialized(size_t length) { return malloc(length); }
1536 virtual void Free(void* data, size_t) { free(data); } 1536 virtual void Free(void* data, size_t) { free(data); }
1537 }; 1537 };
1538 1538
1539 1539
1540 class MockArrayBufferAllocator : public v8::ArrayBuffer::Allocator { 1540 class MockArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
1541 public: 1541 public:
1542 void* Allocate(size_t) OVERRIDE { return malloc(0); } 1542 void* Allocate(size_t) OVERRIDE { return malloc(1); }
1543 void* AllocateUninitialized(size_t length) OVERRIDE { return malloc(0); } 1543 void* AllocateUninitialized(size_t length) OVERRIDE { return malloc(1); }
1544 void Free(void* p, size_t) OVERRIDE { free(p); } 1544 void Free(void* p, size_t) OVERRIDE { free(p); }
1545 }; 1545 };
1546 1546
1547 1547
1548 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 1548 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
1549 class StartupDataHandler { 1549 class StartupDataHandler {
1550 public: 1550 public:
1551 StartupDataHandler(const char* exec_path, const char* natives_blob, 1551 StartupDataHandler(const char* exec_path, const char* natives_blob,
1552 const char* snapshot_blob) { 1552 const char* snapshot_blob) {
1553 // If we have (at least one) explicitly given blob, use those. 1553 // If we have (at least one) explicitly given blob, use those.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 } 1750 }
1751 1751
1752 } // namespace v8 1752 } // namespace v8
1753 1753
1754 1754
1755 #ifndef GOOGLE3 1755 #ifndef GOOGLE3
1756 int main(int argc, char* argv[]) { 1756 int main(int argc, char* argv[]) {
1757 return v8::Shell::Main(argc, argv); 1757 return v8::Shell::Main(argc, argv);
1758 } 1758 }
1759 #endif 1759 #endif
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/d8.gyp » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698