Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 8281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8292 bool MakeExternal(v8::String::ExternalAsciiStringResource* resource); | 8292 bool MakeExternal(v8::String::ExternalAsciiStringResource* resource); |
| 8293 | 8293 |
| 8294 // Conversion. | 8294 // Conversion. |
| 8295 inline bool AsArrayIndex(uint32_t* index); | 8295 inline bool AsArrayIndex(uint32_t* index); |
| 8296 | 8296 |
| 8297 // Casting. | 8297 // Casting. |
| 8298 static inline String* cast(Object* obj); | 8298 static inline String* cast(Object* obj); |
| 8299 | 8299 |
| 8300 void PrintOn(FILE* out); | 8300 void PrintOn(FILE* out); |
| 8301 | 8301 |
| 8302 // Used for flags such as --hydrogen-filter. | |
| 8303 // The filter is a pattern that matches strings in this way: | |
| 8304 // "*" all; the default | |
| 8305 // "-" all but the empty string (e.g. top-level function's name) | |
| 8306 // "-name" all but the string "name" | |
| 8307 // "" only the empty string (e.g. top-level function's name) | |
| 8308 // "name" only the string "name" | |
| 8309 // "name*" only strings starting with "name" | |
| 8310 bool PassesFilter(const char* raw_filter); | |
|
Michael Starzinger
2013/08/23 11:18:13
IMHO this should be a method on JSFunction instead
Jakob Kummerow
2013/08/23 13:19:23
Sounds reasonable. Done.
| |
| 8311 | |
| 8302 // For use during stack traces. Performs rudimentary sanity check. | 8312 // For use during stack traces. Performs rudimentary sanity check. |
| 8303 bool LooksValid(); | 8313 bool LooksValid(); |
| 8304 | 8314 |
| 8305 // Dispatched behavior. | 8315 // Dispatched behavior. |
| 8306 void StringShortPrint(StringStream* accumulator); | 8316 void StringShortPrint(StringStream* accumulator); |
| 8307 #ifdef OBJECT_PRINT | 8317 #ifdef OBJECT_PRINT |
| 8308 inline void StringPrint() { | 8318 inline void StringPrint() { |
| 8309 StringPrint(stdout); | 8319 StringPrint(stdout); |
| 8310 } | 8320 } |
| 8311 void StringPrint(FILE* out); | 8321 void StringPrint(FILE* out); |
| (...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10186 } else { | 10196 } else { |
| 10187 value &= ~(1 << bit_position); | 10197 value &= ~(1 << bit_position); |
| 10188 } | 10198 } |
| 10189 return value; | 10199 return value; |
| 10190 } | 10200 } |
| 10191 }; | 10201 }; |
| 10192 | 10202 |
| 10193 } } // namespace v8::internal | 10203 } } // namespace v8::internal |
| 10194 | 10204 |
| 10195 #endif // V8_OBJECTS_H_ | 10205 #endif // V8_OBJECTS_H_ |
| OLD | NEW |