0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
nodejs/tools/v8_gypfiles/extras-libraries.cc
Michaël Zasso 1dd31fe1aa
tools: sync gypfiles with V8 7.6
Co-authored-by: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Co-authored-by: Ujjwal Sharma <usharma1998@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/28016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2019-08-01 12:56:46 +02:00

45 lines
1.2 KiB
C++

// 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/init/v8.h"
#include "src/snapshot/natives.h"
#include "src/utils/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