This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
forked from nodejs/node-v0.x-archive
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chakrashim: reformat to pass cpplint
Reformat all chakrashim code to pass cpplint. Mostly relayout code to fit into 80 columns. Including some small code refactorings, C-style cast to static_cast/reinterpret_cast, etc. Convert all chakrashim code to \n line ending. Fix a bug in ContextShim::SetAlignedPointerInEmbedderData where it set the data only when the vector grows. Fix a bug in IsolateShim where it didn't initialize embeddedData[].
- Loading branch information
Jianchun Xu
committed
May 6, 2015
1 parent
7d2b5ba
commit d1bf0be
Showing
51 changed files
with
8,418 additions
and
8,722 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 |
---|---|---|
@@ -1,126 +1,126 @@ | ||
{ | ||
'variables': { | ||
'library_files': [ | ||
'lib/chakra_shim.js', | ||
], | ||
}, | ||
'targets': [{ | ||
'target_name': 'chakrashim', | ||
'type': '<(library)', | ||
|
||
'dependencies': [ | ||
'chakra_js2c#host', | ||
], | ||
|
||
'include_dirs': [ | ||
'include', | ||
'<(SHARED_INTERMEDIATE_DIR)' | ||
], | ||
'defines': [ | ||
'USE_EDGEMODE_JSRT=1', | ||
], | ||
'conditions': [ | ||
[ 'target_arch=="ia32"', { 'defines': [ '__i386__=1' ] } ], | ||
[ 'target_arch=="x64"', { 'defines': [ '__x86_64__=1' ] } ], | ||
[ 'target_arch=="arm"', { 'defines': [ '__arm__=1' ] } ], | ||
], | ||
'msvs_disabled_warnings': [4091], | ||
'direct_dependent_settings': { | ||
'include_dirs': [ | ||
'include', | ||
], | ||
'defines': [ | ||
'USE_CHAKRA=1', | ||
'USE_EDGEMODE_JSRT=1', | ||
'_WIN32_WINNT=0x0601', | ||
], | ||
'libraries': [ | ||
'-lchakrart.lib', | ||
'-lole32.lib', | ||
'-lversion.lib', | ||
], | ||
'conditions': [ | ||
[ 'target_arch=="arm"', { | ||
'defines': [ '__arm__=1' ] | ||
}], | ||
], | ||
'msvs_disabled_warnings': [4091], | ||
}, | ||
'sources': [ | ||
'include/v8.h', | ||
'include/v8-debug.h', | ||
'include/v8-profiler.h', | ||
'src/jsrtcachedpropertyidref.h', | ||
'src/jsrtcontextshim.cc', | ||
'src/jsrtcontextshim.h', | ||
'src/jsrtcrosscontext.cc', | ||
'src/jsrtcrosscontext.h', | ||
'src/jsrtisolateshim.cc', | ||
'src/jsrtisolateshim.h', | ||
'src/jsrtpromise.cc', | ||
'src/jsrtproxyutils.cc', | ||
'src/jsrtproxyutils.h', | ||
'src/jsrtstringutils.cc', | ||
'src/jsrtstringutils.h', | ||
'src/jsrtutils.cc', | ||
'src/jsrtutils.h', | ||
'src/v8array.cc', | ||
'src/v8boolean.cc', | ||
'src/v8booleanobject.cc', | ||
'src/v8chakra.h', | ||
'src/v8context.cc', | ||
'src/v8date.cc', | ||
'src/v8debug.cc', | ||
'src/v8exception.cc', | ||
'src/v8external.cc', | ||
'src/v8function.cc', | ||
'src/v8functiontemplate.cc', | ||
'src/v8global.cc', | ||
'src/v8handlescope.cc', | ||
'src/v8int32.cc', | ||
'src/v8integer.cc', | ||
'src/v8isolate.cc', | ||
'src/v8message.cc', | ||
'src/v8number.cc', | ||
'src/v8numberobject.cc', | ||
'src/v8object.cc', | ||
'src/v8objecttemplate.cc', | ||
'src/v8persistent.cc', | ||
'src/v8returnvalue.cc', | ||
'src/v8script.cc', | ||
'src/v8signature.cc', | ||
'src/v8string.cc', | ||
'src/v8stringobject.cc', | ||
'src/v8template.cc', | ||
'src/v8trycatch.cc', | ||
'src/v8uint32.cc', | ||
'src/v8v8.cc', | ||
'src/v8value.cc', | ||
], | ||
}, # end chakrashim | ||
{ | ||
'target_name': 'chakra_js2c', | ||
'type': 'none', | ||
'toolsets': ['host'], | ||
'msvs_disabled_warnings': [4091], | ||
'actions': [ | ||
{ | ||
'action_name': 'chakra_js2c', | ||
'inputs': [ | ||
'<@(library_files)' | ||
], | ||
'outputs': [ | ||
'<(SHARED_INTERMEDIATE_DIR)/chakra_natives.h', | ||
], | ||
'action': [ | ||
'<(python)', | ||
'./../../tools/js2c.py', | ||
'-chakra', | ||
'<@(_outputs)', | ||
'<@(_inputs)', | ||
], | ||
}, | ||
], | ||
}, # end chakra_js2c | ||
], | ||
} | ||
{ | ||
'variables': { | ||
'library_files': [ | ||
'lib/chakra_shim.js', | ||
], | ||
}, | ||
'targets': [{ | ||
'target_name': 'chakrashim', | ||
'type': '<(library)', | ||
|
||
'dependencies': [ | ||
'chakra_js2c#host', | ||
], | ||
|
||
'include_dirs': [ | ||
'include', | ||
'<(SHARED_INTERMEDIATE_DIR)' | ||
], | ||
'defines': [ | ||
'USE_EDGEMODE_JSRT=1', | ||
], | ||
'conditions': [ | ||
[ 'target_arch=="ia32"', { 'defines': [ '__i386__=1' ] } ], | ||
[ 'target_arch=="x64"', { 'defines': [ '__x86_64__=1' ] } ], | ||
[ 'target_arch=="arm"', { 'defines': [ '__arm__=1' ] } ], | ||
], | ||
'msvs_disabled_warnings': [4091], | ||
'direct_dependent_settings': { | ||
'include_dirs': [ | ||
'include', | ||
], | ||
'defines': [ | ||
'USE_CHAKRA=1', | ||
'USE_EDGEMODE_JSRT=1', | ||
'_WIN32_WINNT=0x0601', | ||
], | ||
'libraries': [ | ||
'-lchakrart.lib', | ||
'-lole32.lib', | ||
'-lversion.lib', | ||
], | ||
'conditions': [ | ||
[ 'target_arch=="arm"', { | ||
'defines': [ '__arm__=1' ] | ||
}], | ||
], | ||
'msvs_disabled_warnings': [4091], | ||
}, | ||
'sources': [ | ||
'include/v8.h', | ||
'include/v8-debug.h', | ||
'include/v8-profiler.h', | ||
'src/jsrtcachedpropertyidref.inc', | ||
'src/jsrtcontextshim.cc', | ||
'src/jsrtcontextshim.h', | ||
'src/jsrtcrosscontext.cc', | ||
'src/jsrtcrosscontext.h', | ||
'src/jsrtisolateshim.cc', | ||
'src/jsrtisolateshim.h', | ||
'src/jsrtpromise.cc', | ||
'src/jsrtproxyutils.cc', | ||
'src/jsrtproxyutils.h', | ||
'src/jsrtstringutils.cc', | ||
'src/jsrtstringutils.h', | ||
'src/jsrtutils.cc', | ||
'src/jsrtutils.h', | ||
'src/v8array.cc', | ||
'src/v8boolean.cc', | ||
'src/v8booleanobject.cc', | ||
'src/v8chakra.h', | ||
'src/v8context.cc', | ||
'src/v8date.cc', | ||
'src/v8debug.cc', | ||
'src/v8exception.cc', | ||
'src/v8external.cc', | ||
'src/v8function.cc', | ||
'src/v8functiontemplate.cc', | ||
'src/v8global.cc', | ||
'src/v8handlescope.cc', | ||
'src/v8int32.cc', | ||
'src/v8integer.cc', | ||
'src/v8isolate.cc', | ||
'src/v8message.cc', | ||
'src/v8number.cc', | ||
'src/v8numberobject.cc', | ||
'src/v8object.cc', | ||
'src/v8objecttemplate.cc', | ||
'src/v8persistent.cc', | ||
'src/v8returnvalue.cc', | ||
'src/v8script.cc', | ||
'src/v8signature.cc', | ||
'src/v8string.cc', | ||
'src/v8stringobject.cc', | ||
'src/v8template.cc', | ||
'src/v8trycatch.cc', | ||
'src/v8uint32.cc', | ||
'src/v8v8.cc', | ||
'src/v8value.cc', | ||
], | ||
}, # end chakrashim | ||
{ | ||
'target_name': 'chakra_js2c', | ||
'type': 'none', | ||
'toolsets': ['host'], | ||
'msvs_disabled_warnings': [4091], | ||
'actions': [ | ||
{ | ||
'action_name': 'chakra_js2c', | ||
'inputs': [ | ||
'<@(library_files)' | ||
], | ||
'outputs': [ | ||
'<(SHARED_INTERMEDIATE_DIR)/chakra_natives.h', | ||
], | ||
'action': [ | ||
'<(python)', | ||
'./../../tools/js2c.py', | ||
'-chakra', | ||
'<@(_outputs)', | ||
'<@(_inputs)', | ||
], | ||
}, | ||
], | ||
}, # end chakra_js2c | ||
], | ||
} |
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.