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

Side by Side Diff: src/objects.h

Issue 1823033002: [compiler] Move PassesFilter onto SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 6811 matching lines...) Expand 10 before | Expand all | Expand 10 after
6822 6822
6823 // A function has debug code if the compiled code has debug break slots. 6823 // A function has debug code if the compiled code has debug break slots.
6824 inline bool HasDebugCode(); 6824 inline bool HasDebugCode();
6825 6825
6826 // [debug info]: Debug information. 6826 // [debug info]: Debug information.
6827 DECL_ACCESSORS(debug_info, Object) 6827 DECL_ACCESSORS(debug_info, Object)
6828 6828
6829 // The function's name if it is non-empty, otherwise the inferred name. 6829 // The function's name if it is non-empty, otherwise the inferred name.
6830 String* DebugName(); 6830 String* DebugName();
6831 6831
6832 // Used for flags such as --hydrogen-filter.
6833 bool PassesFilter(const char* raw_filter);
6834
6832 // Position of the 'function' token in the script source. 6835 // Position of the 'function' token in the script source.
6833 inline int function_token_position() const; 6836 inline int function_token_position() const;
6834 inline void set_function_token_position(int function_token_position); 6837 inline void set_function_token_position(int function_token_position);
6835 6838
6836 // Position of this function in the script source. 6839 // Position of this function in the script source.
6837 inline int start_position() const; 6840 inline int start_position() const;
6838 inline void set_start_position(int start_position); 6841 inline void set_start_position(int start_position);
6839 6842
6840 // End position of this function in the script source. 6843 // End position of this function in the script source.
6841 inline int end_position() const; 6844 inline int end_position() const;
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
7601 typedef BodyDescriptorImpl<kSkipCodeEntryAndNextFunction> 7604 typedef BodyDescriptorImpl<kSkipCodeEntryAndNextFunction>
7602 BodyDescriptorWeakCode; 7605 BodyDescriptorWeakCode;
7603 7606
7604 // Dispatched behavior. 7607 // Dispatched behavior.
7605 DECLARE_PRINTER(JSFunction) 7608 DECLARE_PRINTER(JSFunction)
7606 DECLARE_VERIFIER(JSFunction) 7609 DECLARE_VERIFIER(JSFunction)
7607 7610
7608 // Returns the number of allocated literals. 7611 // Returns the number of allocated literals.
7609 inline int NumberOfLiterals(); 7612 inline int NumberOfLiterals();
7610 7613
7611 // Used for flags such as --hydrogen-filter.
7612 bool PassesFilter(const char* raw_filter);
7613
7614 // The function's name if it is configured, otherwise shared function info 7614 // The function's name if it is configured, otherwise shared function info
7615 // debug name. 7615 // debug name.
7616 static Handle<String> GetName(Handle<JSFunction> function); 7616 static Handle<String> GetName(Handle<JSFunction> function);
7617 7617
7618 // ES6 section 9.2.11 SetFunctionName 7618 // ES6 section 9.2.11 SetFunctionName
7619 // Because of the way this abstract operation is used in the spec, 7619 // Because of the way this abstract operation is used in the spec,
7620 // it should never fail. 7620 // it should never fail.
7621 static void SetName(Handle<JSFunction> function, Handle<Name> name, 7621 static void SetName(Handle<JSFunction> function, Handle<Name> name,
7622 Handle<String> prefix); 7622 Handle<String> prefix);
7623 7623
(...skipping 3272 matching lines...) Expand 10 before | Expand all | Expand 10 after
10896 } 10896 }
10897 return value; 10897 return value;
10898 } 10898 }
10899 }; 10899 };
10900 10900
10901 10901
10902 } // NOLINT, false-positive due to second-order macros. 10902 } // NOLINT, false-positive due to second-order macros.
10903 } // NOLINT, false-positive due to second-order macros. 10903 } // NOLINT, false-positive due to second-order macros.
10904 10904
10905 #endif // V8_OBJECTS_H_ 10905 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698