-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make `generate_snapshot` into a target with no debug symbols on XCode * cleanup PR-URL: #26685 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
- Loading branch information
Showing
4 changed files
with
277 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2011 Google Inc. All Rights Reserved. | ||
|
||
// This file was generated from .js source files by GYP. If you | ||
// want to make changes to this file you should either change the | ||
// javascript source files or the GYP script. | ||
|
||
#include "src/v8.h" | ||
#include "src/snapshot/natives.h" | ||
#include "src/utils.h" | ||
|
||
namespace v8 { | ||
namespace internal { | ||
|
||
static const char sources[] = { 40, 102, 117, 110, 99, 116, 105, 111, 110, 40, 41, 32, 123, 125, 41 }; | ||
|
||
template <> | ||
int NativesCollection<EXTRAS>::GetBuiltinsCount() { | ||
return 1; | ||
} | ||
|
||
template <> | ||
int NativesCollection<EXTRAS>::GetIndex(const char* name) { | ||
if (strcmp(name, "dummy") == 0) return 0; | ||
return -1; | ||
} | ||
|
||
template <> | ||
Vector<const char> NativesCollection<EXTRAS>::GetScriptSource(int index) { | ||
if (index == 0) return Vector<const char>(sources + 0, 15); | ||
return Vector<const char>("", 0); | ||
} | ||
|
||
template <> | ||
Vector<const char> NativesCollection<EXTRAS>::GetScriptName(int index) { | ||
if (index == 0) return Vector<const char>("native dummy.js", 15); | ||
return Vector<const char>("", 0); | ||
} | ||
|
||
template <> | ||
Vector<const char> NativesCollection<EXTRAS>::GetScriptsSource() { | ||
return Vector<const char>(sources, 15); | ||
} | ||
} // internal | ||
} // v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.