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

Side by Side Diff: include/v8.h

Issue 25037002: remove Isolate::Current from ScriptData and Script (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: test fix Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 class V8_EXPORT ScriptData { // NOLINT 899 class V8_EXPORT ScriptData { // NOLINT
900 public: 900 public:
901 virtual ~ScriptData() { } 901 virtual ~ScriptData() { }
902 902
903 /** 903 /**
904 * Pre-compiles the specified script (context-independent). 904 * Pre-compiles the specified script (context-independent).
905 * 905 *
906 * \param input Pointer to UTF-8 script source code. 906 * \param input Pointer to UTF-8 script source code.
907 * \param length Length of UTF-8 script source code. 907 * \param length Length of UTF-8 script source code.
908 */ 908 */
909 static ScriptData* PreCompile(const char* input, int length); 909 static ScriptData* PreCompile(Isolate* isolate,
910 const char* input,
911 int length);
910 912
911 /** 913 /**
912 * Pre-compiles the specified script (context-independent). 914 * Pre-compiles the specified script (context-independent).
913 * 915 *
914 * NOTE: Pre-compilation using this method cannot happen on another thread 916 * NOTE: Pre-compilation using this method cannot happen on another thread
915 * without using Lockers. 917 * without using Lockers.
916 * 918 *
917 * \param source Script source code. 919 * \param source Script source code.
918 */ 920 */
919 static ScriptData* PreCompile(Handle<String> source); 921 static ScriptData* PreCompile(Handle<String> source);
(...skipping 5575 matching lines...) Expand 10 before | Expand all | Expand 10 after
6495 */ 6497 */
6496 6498
6497 6499
6498 } // namespace v8 6500 } // namespace v8
6499 6501
6500 6502
6501 #undef TYPE_CHECK 6503 #undef TYPE_CHECK
6502 6504
6503 6505
6504 #endif // V8_H_ 6506 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698