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

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: Created 5 years, 11 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include <windows.h> // NOLINT 55 #include <windows.h> // NOLINT
56 #if defined(_MSC_VER) 56 #if defined(_MSC_VER)
57 #include <crtdbg.h> // NOLINT 57 #include <crtdbg.h> // NOLINT
58 #endif // defined(_MSC_VER) 58 #endif // defined(_MSC_VER)
59 #endif // !defined(_WIN32) && !defined(_WIN64) 59 #endif // !defined(_WIN32) && !defined(_WIN64)
60 60
61 #ifndef DCHECK 61 #ifndef DCHECK
62 #define DCHECK(condition) assert(condition) 62 #define DCHECK(condition) assert(condition)
63 #endif 63 #endif
64 64
65 #if V8_OS_AIX
66 #define malloc __linux_malloc
Sven Panne 2015/01/27 11:47:06 Why do we need this? A comment would be nice.
michael_dawson 2015/01/29 00:08:29 This is the comment I'll add explaining: // On AIX
Sven Panne 2015/01/29 09:54:33 Hmmm, if I see this correctly, malloc(0) only happ
michael_dawson 2015/01/29 18:21:58 Will do
67 #endif
68
65 namespace v8 { 69 namespace v8 {
66 70
67 71
68 static Handle<Value> Throw(Isolate* isolate, const char* message) { 72 static Handle<Value> Throw(Isolate* isolate, const char* message) {
69 return isolate->ThrowException(String::NewFromUtf8(isolate, message)); 73 return isolate->ThrowException(String::NewFromUtf8(isolate, message));
70 } 74 }
71 75
72 76
73 77
74 class PerIsolateData { 78 class PerIsolateData {
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 } 1754 }
1751 1755
1752 } // namespace v8 1756 } // namespace v8
1753 1757
1754 1758
1755 #ifndef GOOGLE3 1759 #ifndef GOOGLE3
1756 int main(int argc, char* argv[]) { 1760 int main(int argc, char* argv[]) {
1757 return v8::Shell::Main(argc, argv); 1761 return v8::Shell::Main(argc, argv);
1758 } 1762 }
1759 #endif 1763 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698