| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 Handle<JSObject> Copy(Handle<JSObject> obj); | 219 Handle<JSObject> Copy(Handle<JSObject> obj); |
| 220 | 220 |
| 221 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, | 221 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, |
| 222 Handle<JSArray> array); | 222 Handle<JSArray> array); |
| 223 | 223 |
| 224 // Get the JS object corresponding to the given script; create it | 224 // Get the JS object corresponding to the given script; create it |
| 225 // if none exists. | 225 // if none exists. |
| 226 Handle<JSValue> GetScriptWrapper(Handle<Script> script); | 226 Handle<JSValue> GetScriptWrapper(Handle<Script> script); |
| 227 | 227 |
| 228 // Script line number computations. |
| 229 void InitScriptLineEnds(Handle<Script> script); |
| 230 int GetScriptLineNumber(Handle<Script> script, int code_position); |
| 231 |
| 228 // Computes the enumerable keys from interceptors. Used for debug mirrors and | 232 // Computes the enumerable keys from interceptors. Used for debug mirrors and |
| 229 // by GetKeysInFixedArrayFor below. | 233 // by GetKeysInFixedArrayFor below. |
| 230 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSObject> receiver, | 234 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSObject> receiver, |
| 231 Handle<JSObject> object); | 235 Handle<JSObject> object); |
| 232 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSObject> receiver, | 236 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSObject> receiver, |
| 233 Handle<JSObject> object); | 237 Handle<JSObject> object); |
| 234 // Computes the enumerable keys for a JSObject. Used for implementing | 238 // Computes the enumerable keys for a JSObject. Used for implementing |
| 235 // "for (n in object) { }". | 239 // "for (n in object) { }". |
| 236 Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSObject> object); | 240 Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSObject> object); |
| 237 Handle<JSArray> GetKeysFor(Handle<JSObject> object); | 241 Handle<JSArray> GetKeysFor(Handle<JSObject> object); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 private: | 315 private: |
| 312 bool has_been_transformed_; // Tells whether the object has been transformed. | 316 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 313 int unused_property_fields_; // Captures the unused number of field. | 317 int unused_property_fields_; // Captures the unused number of field. |
| 314 Handle<JSObject> object_; // The object being optimized. | 318 Handle<JSObject> object_; // The object being optimized. |
| 315 }; | 319 }; |
| 316 | 320 |
| 317 | 321 |
| 318 } } // namespace v8::internal | 322 } } // namespace v8::internal |
| 319 | 323 |
| 320 #endif // V8_HANDLES_H_ | 324 #endif // V8_HANDLES_H_ |
| OLD | NEW |