| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 | 85 |
| 86 class ScriptDataImpl : public ScriptData { | 86 class ScriptDataImpl : public ScriptData { |
| 87 public: | 87 public: |
| 88 explicit ScriptDataImpl(Vector<unsigned> store) | 88 explicit ScriptDataImpl(Vector<unsigned> store) |
| 89 : store_(store), | 89 : store_(store), |
| 90 last_entry_(0) { } | 90 last_entry_(0) { } |
| 91 virtual ~ScriptDataImpl(); | 91 virtual ~ScriptDataImpl(); |
| 92 virtual int Length(); | 92 virtual int Length(); |
| 93 virtual unsigned* Data(); | 93 virtual unsigned* Data(); |
| 94 virtual bool HasError(); |
| 94 FunctionEntry GetFunctionEnd(int start); | 95 FunctionEntry GetFunctionEnd(int start); |
| 95 bool SanityCheck(); | 96 bool SanityCheck(); |
| 96 | 97 |
| 97 Scanner::Location MessageLocation(); | 98 Scanner::Location MessageLocation(); |
| 98 const char* BuildMessage(); | 99 const char* BuildMessage(); |
| 99 Vector<const char*> BuildArgs(); | 100 Vector<const char*> BuildArgs(); |
| 100 | 101 |
| 101 bool has_error() { return store_[kHasErrorOffset]; } | 102 bool has_error() { return store_[kHasErrorOffset]; } |
| 102 unsigned magic() { return store_[kMagicOffset]; } | 103 unsigned magic() { return store_[kMagicOffset]; } |
| 103 unsigned version() { return store_[kVersionOffset]; } | 104 unsigned version() { return store_[kVersionOffset]; } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 static const int kTypeSlot = 0; | 186 static const int kTypeSlot = 0; |
| 186 static const int kElementsSlot = 1; | 187 static const int kElementsSlot = 1; |
| 187 | 188 |
| 188 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 189 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 189 }; | 190 }; |
| 190 | 191 |
| 191 | 192 |
| 192 } } // namespace v8::internal | 193 } } // namespace v8::internal |
| 193 | 194 |
| 194 #endif // V8_PARSER_H_ | 195 #endif // V8_PARSER_H_ |
| OLD | NEW |