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

Side by Side Diff: src/objects.h

Issue 22926025: Add --trace-hydrogen-filter flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: refactored Created 7 years, 3 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
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 7063 matching lines...) Expand 10 before | Expand all | Expand 10 after
7074 // Dispatched behavior. 7074 // Dispatched behavior.
7075 DECLARE_PRINTER(JSFunction) 7075 DECLARE_PRINTER(JSFunction)
7076 DECLARE_VERIFIER(JSFunction) 7076 DECLARE_VERIFIER(JSFunction)
7077 7077
7078 // Returns the number of allocated literals. 7078 // Returns the number of allocated literals.
7079 inline int NumberOfLiterals(); 7079 inline int NumberOfLiterals();
7080 7080
7081 // Retrieve the native context from a function's literal array. 7081 // Retrieve the native context from a function's literal array.
7082 static Context* NativeContextFromLiterals(FixedArray* literals); 7082 static Context* NativeContextFromLiterals(FixedArray* literals);
7083 7083
7084 bool PassesHydrogenFilter(); 7084 // Used for flags such as --hydrogen-filter.
7085 bool PassesFilter(const char* raw_filter);
7085 7086
7086 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to 7087 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to
7087 // kSize) is weak and has special handling during garbage collection. 7088 // kSize) is weak and has special handling during garbage collection.
7088 static const int kCodeEntryOffset = JSObject::kHeaderSize; 7089 static const int kCodeEntryOffset = JSObject::kHeaderSize;
7089 static const int kPrototypeOrInitialMapOffset = 7090 static const int kPrototypeOrInitialMapOffset =
7090 kCodeEntryOffset + kPointerSize; 7091 kCodeEntryOffset + kPointerSize;
7091 static const int kSharedFunctionInfoOffset = 7092 static const int kSharedFunctionInfoOffset =
7092 kPrototypeOrInitialMapOffset + kPointerSize; 7093 kPrototypeOrInitialMapOffset + kPointerSize;
7093 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; 7094 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize;
7094 static const int kLiteralsOffset = kContextOffset + kPointerSize; 7095 static const int kLiteralsOffset = kContextOffset + kPointerSize;
(...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after
10186 } else { 10187 } else {
10187 value &= ~(1 << bit_position); 10188 value &= ~(1 << bit_position);
10188 } 10189 }
10189 return value; 10190 return value;
10190 } 10191 }
10191 }; 10192 };
10192 10193
10193 } } // namespace v8::internal 10194 } } // namespace v8::internal
10194 10195
10195 #endif // V8_OBJECTS_H_ 10196 #endif // V8_OBJECTS_H_
OLDNEW
« src/compiler.cc ('K') | « src/flag-definitions.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698