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

Side by Side Diff: src/objects.h

Issue 2156303002: Implement new Function.prototype.toString and fix CreateDynamicFunction parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « src/messages.h ('k') | src/objects.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 7273 matching lines...) Expand 10 before | Expand all | Expand 10 after
7284 inline BailoutReason disable_optimization_reason(); 7284 inline BailoutReason disable_optimization_reason();
7285 7285
7286 // Lookup the bailout ID and DCHECK that it exists in the non-optimized 7286 // Lookup the bailout ID and DCHECK that it exists in the non-optimized
7287 // code, returns whether it asserted (i.e., always true if assertions are 7287 // code, returns whether it asserted (i.e., always true if assertions are
7288 // disabled). 7288 // disabled).
7289 bool VerifyBailoutId(BailoutId id); 7289 bool VerifyBailoutId(BailoutId id);
7290 7290
7291 // [source code]: Source code for the function. 7291 // [source code]: Source code for the function.
7292 bool HasSourceCode() const; 7292 bool HasSourceCode() const;
7293 Handle<Object> GetSourceCode(); 7293 Handle<Object> GetSourceCode();
7294 Handle<Object> GetSourceCodeHarmony();
7294 7295
7295 // Number of times the function was optimized. 7296 // Number of times the function was optimized.
7296 inline int opt_count(); 7297 inline int opt_count();
7297 inline void set_opt_count(int opt_count); 7298 inline void set_opt_count(int opt_count);
7298 7299
7299 // Number of times the function was deoptimized. 7300 // Number of times the function was deoptimized.
7300 inline void set_deopt_count(int value); 7301 inline void set_deopt_count(int value);
7301 inline int deopt_count(); 7302 inline int deopt_count();
7302 inline void increment_deopt_count(); 7303 inline void increment_deopt_count();
7303 7304
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
8670 HashTableKey*> { 8671 HashTableKey*> {
8671 public: 8672 public:
8672 // Find cached value for a string key, otherwise return null. 8673 // Find cached value for a string key, otherwise return null.
8673 Handle<Object> Lookup( 8674 Handle<Object> Lookup(
8674 Handle<String> src, Handle<Context> context, LanguageMode language_mode); 8675 Handle<String> src, Handle<Context> context, LanguageMode language_mode);
8675 InfoVectorPair LookupScript(Handle<String> src, Handle<Context> context, 8676 InfoVectorPair LookupScript(Handle<String> src, Handle<Context> context,
8676 LanguageMode language_mode); 8677 LanguageMode language_mode);
8677 InfoVectorPair LookupEval(Handle<String> src, 8678 InfoVectorPair LookupEval(Handle<String> src,
8678 Handle<SharedFunctionInfo> shared, 8679 Handle<SharedFunctionInfo> shared,
8679 Handle<Context> native_context, 8680 Handle<Context> native_context,
8680 LanguageMode language_mode, int scope_position); 8681 LanguageMode language_mode, int position);
8681 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags); 8682 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags);
8682 static Handle<CompilationCacheTable> Put( 8683 static Handle<CompilationCacheTable> Put(
8683 Handle<CompilationCacheTable> cache, Handle<String> src, 8684 Handle<CompilationCacheTable> cache, Handle<String> src,
8684 Handle<Context> context, LanguageMode language_mode, 8685 Handle<Context> context, LanguageMode language_mode,
8685 Handle<Object> value); 8686 Handle<Object> value);
8686 static Handle<CompilationCacheTable> PutScript( 8687 static Handle<CompilationCacheTable> PutScript(
8687 Handle<CompilationCacheTable> cache, Handle<String> src, 8688 Handle<CompilationCacheTable> cache, Handle<String> src,
8688 Handle<Context> context, LanguageMode language_mode, 8689 Handle<Context> context, LanguageMode language_mode,
8689 Handle<SharedFunctionInfo> value, Handle<Cell> literals); 8690 Handle<SharedFunctionInfo> value, Handle<Cell> literals);
8690 static Handle<CompilationCacheTable> PutEval( 8691 static Handle<CompilationCacheTable> PutEval(
8691 Handle<CompilationCacheTable> cache, Handle<String> src, 8692 Handle<CompilationCacheTable> cache, Handle<String> src,
8692 Handle<SharedFunctionInfo> outer_info, Handle<SharedFunctionInfo> value, 8693 Handle<SharedFunctionInfo> outer_info, Handle<SharedFunctionInfo> value,
8693 Handle<Context> native_context, Handle<Cell> literals, 8694 Handle<Context> native_context, Handle<Cell> literals, int position);
8694 int scope_position);
8695 static Handle<CompilationCacheTable> PutRegExp( 8695 static Handle<CompilationCacheTable> PutRegExp(
8696 Handle<CompilationCacheTable> cache, Handle<String> src, 8696 Handle<CompilationCacheTable> cache, Handle<String> src,
8697 JSRegExp::Flags flags, Handle<FixedArray> value); 8697 JSRegExp::Flags flags, Handle<FixedArray> value);
8698 void Remove(Object* value); 8698 void Remove(Object* value);
8699 void Age(); 8699 void Age();
8700 static const int kHashGenerations = 10; 8700 static const int kHashGenerations = 10;
8701 8701
8702 DECLARE_CAST(CompilationCacheTable) 8702 DECLARE_CAST(CompilationCacheTable)
8703 8703
8704 private: 8704 private:
(...skipping 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after
11542 } 11542 }
11543 }; 11543 };
11544 11544
11545 11545
11546 } // NOLINT, false-positive due to second-order macros. 11546 } // NOLINT, false-positive due to second-order macros.
11547 } // NOLINT, false-positive due to second-order macros. 11547 } // NOLINT, false-positive due to second-order macros.
11548 11548
11549 #include "src/objects/object-macros-undef.h" 11549 #include "src/objects/object-macros-undef.h"
11550 11550
11551 #endif // V8_OBJECTS_H_ 11551 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698