| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 Object* script = JSValue::cast(object)->value(); | 393 Object* script = JSValue::cast(object)->value(); |
| 394 if (!Script::cast(script)->eval_from_shared()->IsUndefined()) { | 394 if (!Script::cast(script)->eval_from_shared()->IsUndefined()) { |
| 395 Handle<SharedFunctionInfo> eval_from_shared( | 395 Handle<SharedFunctionInfo> eval_from_shared( |
| 396 SharedFunctionInfo::cast(Script::cast(script)->eval_from_shared())); | 396 SharedFunctionInfo::cast(Script::cast(script)->eval_from_shared())); |
| 397 | 397 |
| 398 if (eval_from_shared->script()->IsScript()) { | 398 if (eval_from_shared->script()->IsScript()) { |
| 399 Handle<Script> eval_from_script(Script::cast(eval_from_shared->script())); | 399 Handle<Script> eval_from_script(Script::cast(eval_from_shared->script())); |
| 400 return *GetScriptWrapper(eval_from_script); | 400 return *GetScriptWrapper(eval_from_script); |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 return HEAP->undefined_value(); | 403 return isolate->heap()->undefined_value(); |
| 404 } | 404 } |
| 405 | 405 |
| 406 | 406 |
| 407 const AccessorDescriptor Accessors::ScriptEvalFromScript = { | 407 const AccessorDescriptor Accessors::ScriptEvalFromScript = { |
| 408 ScriptGetEvalFromScript, | 408 ScriptGetEvalFromScript, |
| 409 IllegalSetter, | 409 IllegalSetter, |
| 410 0 | 410 0 |
| 411 }; | 411 }; |
| 412 | 412 |
| 413 | 413 |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 info->set_data(Smi::FromInt(index)); | 908 info->set_data(Smi::FromInt(index)); |
| 909 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); | 909 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); |
| 910 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); | 910 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); |
| 911 info->set_getter(*getter); | 911 info->set_getter(*getter); |
| 912 if (!(attributes & ReadOnly)) info->set_setter(*setter); | 912 if (!(attributes & ReadOnly)) info->set_setter(*setter); |
| 913 return info; | 913 return info; |
| 914 } | 914 } |
| 915 | 915 |
| 916 | 916 |
| 917 } } // namespace v8::internal | 917 } } // namespace v8::internal |
| OLD | NEW |