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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 Handle<Object> fun_name(fun->shared()->name(), this); | 809 Handle<Object> fun_name(fun->shared()->name(), this); |
810 if (!fun_name->BooleanValue()) { | 810 if (!fun_name->BooleanValue()) { |
811 fun_name = Handle<Object>(fun->shared()->inferred_name(), this); | 811 fun_name = Handle<Object>(fun->shared()->inferred_name(), this); |
812 } | 812 } |
813 CHECK_NOT_EMPTY_HANDLE(this, | 813 CHECK_NOT_EMPTY_HANDLE(this, |
814 JSObject::SetLocalPropertyIgnoreAttributes( | 814 JSObject::SetLocalPropertyIgnoreAttributes( |
815 stack_frame, function_key, fun_name, NONE)); | 815 stack_frame, function_key, fun_name, NONE)); |
816 } | 816 } |
817 | 817 |
818 if (options & StackTrace::kIsEval) { | 818 if (options & StackTrace::kIsEval) { |
819 int type = Smi::cast(script->compilation_type())->value(); | 819 Handle<Object> is_eval = |
820 Handle<Object> is_eval = (type == Script::COMPILATION_TYPE_EVAL) ? | 820 script->compilation_type() == Script::COMPILATION_TYPE_EVAL ? |
821 factory()->true_value() : factory()->false_value(); | 821 factory()->true_value() : factory()->false_value(); |
822 CHECK_NOT_EMPTY_HANDLE(this, | 822 CHECK_NOT_EMPTY_HANDLE(this, |
823 JSObject::SetLocalPropertyIgnoreAttributes( | 823 JSObject::SetLocalPropertyIgnoreAttributes( |
824 stack_frame, eval_key, is_eval, NONE)); | 824 stack_frame, eval_key, is_eval, NONE)); |
825 } | 825 } |
826 | 826 |
827 if (options & StackTrace::kIsConstructor) { | 827 if (options & StackTrace::kIsConstructor) { |
828 Handle<Object> is_constructor = (frames[i].is_constructor()) ? | 828 Handle<Object> is_constructor = (frames[i].is_constructor()) ? |
829 factory()->true_value() : factory()->false_value(); | 829 factory()->true_value() : factory()->false_value(); |
830 CHECK_NOT_EMPTY_HANDLE(this, | 830 CHECK_NOT_EMPTY_HANDLE(this, |
831 JSObject::SetLocalPropertyIgnoreAttributes( | 831 JSObject::SetLocalPropertyIgnoreAttributes( |
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2516 | 2516 |
2517 #ifdef DEBUG | 2517 #ifdef DEBUG |
2518 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2518 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2519 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2519 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2520 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2520 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2521 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2521 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2522 #undef ISOLATE_FIELD_OFFSET | 2522 #undef ISOLATE_FIELD_OFFSET |
2523 #endif | 2523 #endif |
2524 | 2524 |
2525 } } // namespace v8::internal | 2525 } } // namespace v8::internal |
OLD | NEW |