Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Side by Side Diff: src/deoptimizer.cc

Issue 145773008: A64: Synchronize with r17104. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/deoptimizer.h ('k') | src/disassembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2721 matching lines...) Expand 10 before | Expand all | Expand 10 after
2732 return 3; 2732 return 3;
2733 } 2733 }
2734 UNREACHABLE(); 2734 UNREACHABLE();
2735 return -1; 2735 return -1;
2736 } 2736 }
2737 2737
2738 2738
2739 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) 2739 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER)
2740 2740
2741 const char* Translation::StringFor(Opcode opcode) { 2741 const char* Translation::StringFor(Opcode opcode) {
2742 #define TRANSLATION_OPCODE_CASE(item) case item: return #item;
2742 switch (opcode) { 2743 switch (opcode) {
2743 case BEGIN: 2744 TRANSLATION_OPCODE_LIST(TRANSLATION_OPCODE_CASE)
2744 return "BEGIN";
2745 case JS_FRAME:
2746 return "JS_FRAME";
2747 case ARGUMENTS_ADAPTOR_FRAME:
2748 return "ARGUMENTS_ADAPTOR_FRAME";
2749 case CONSTRUCT_STUB_FRAME:
2750 return "CONSTRUCT_STUB_FRAME";
2751 case GETTER_STUB_FRAME:
2752 return "GETTER_STUB_FRAME";
2753 case SETTER_STUB_FRAME:
2754 return "SETTER_STUB_FRAME";
2755 case COMPILED_STUB_FRAME:
2756 return "COMPILED_STUB_FRAME";
2757 case REGISTER:
2758 return "REGISTER";
2759 case INT32_REGISTER:
2760 return "INT32_REGISTER";
2761 case UINT32_REGISTER:
2762 return "UINT32_REGISTER";
2763 case DOUBLE_REGISTER:
2764 return "DOUBLE_REGISTER";
2765 case STACK_SLOT:
2766 return "STACK_SLOT";
2767 case INT32_STACK_SLOT:
2768 return "INT32_STACK_SLOT";
2769 case UINT32_STACK_SLOT:
2770 return "UINT32_STACK_SLOT";
2771 case DOUBLE_STACK_SLOT:
2772 return "DOUBLE_STACK_SLOT";
2773 case LITERAL:
2774 return "LITERAL";
2775 case DUPLICATED_OBJECT:
2776 return "DUPLICATED_OBJECT";
2777 case ARGUMENTS_OBJECT:
2778 return "ARGUMENTS_OBJECT";
2779 case CAPTURED_OBJECT:
2780 return "CAPTURED_OBJECT";
2781 } 2745 }
2746 #undef TRANSLATION_OPCODE_CASE
2782 UNREACHABLE(); 2747 UNREACHABLE();
2783 return ""; 2748 return "";
2784 } 2749 }
2785 2750
2786 #endif 2751 #endif
2787 2752
2788 2753
2789 // We can't intermix stack decoding and allocations because 2754 // We can't intermix stack decoding and allocations because
2790 // deoptimization infrastracture is not GC safe. 2755 // deoptimization infrastracture is not GC safe.
2791 // Thus we build a temporary structure in malloced space. 2756 // Thus we build a temporary structure in malloced space.
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
2976 2941
2977 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 2942 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
2978 v->VisitPointer(BitCast<Object**>(&function_)); 2943 v->VisitPointer(BitCast<Object**>(&function_));
2979 v->VisitPointers(parameters_, parameters_ + parameters_count_); 2944 v->VisitPointers(parameters_, parameters_ + parameters_count_);
2980 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 2945 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
2981 } 2946 }
2982 2947
2983 #endif // ENABLE_DEBUGGER_SUPPORT 2948 #endif // ENABLE_DEBUGGER_SUPPORT
2984 2949
2985 } } // namespace v8::internal 2950 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.h ('k') | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698