| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 unsigned height_in_bytes = height * kPointerSize; | 138 unsigned height_in_bytes = height * kPointerSize; |
| 139 if (FLAG_trace_deopt) { | 139 if (FLAG_trace_deopt) { |
| 140 PrintF(" translating "); | 140 PrintF(" translating "); |
| 141 function->PrintName(); | 141 function->PrintName(); |
| 142 PrintF(" => node=%d, height=%d\n", node_id, height_in_bytes); | 142 PrintF(" => node=%d, height=%d\n", node_id, height_in_bytes); |
| 143 } | 143 } |
| 144 | 144 |
| 145 // The 'fixed' part of the frame consists of the incoming parameters and | 145 // The 'fixed' part of the frame consists of the incoming parameters and |
| 146 // the part described by JavaScriptFrameConstants. | 146 // the part described by JavaScriptFrameConstants. |
| 147 unsigned fixed_frame_size = ComputeFixedSize(function); | 147 unsigned fixed_frame_size = ComputeFixedSize(function); |
| 148 unsigned input_frame_size = input_->GetFrameSize(); | 148 unsigned input_frame_size = static_cast<unsigned>(input_->GetFrameSize()); |
| 149 unsigned output_frame_size = height_in_bytes + fixed_frame_size; | 149 unsigned output_frame_size = height_in_bytes + fixed_frame_size; |
| 150 | 150 |
| 151 // Allocate and store the output frame description. | 151 // Allocate and store the output frame description. |
| 152 FrameDescription* output_frame = | 152 FrameDescription* output_frame = |
| 153 new(output_frame_size) FrameDescription(output_frame_size, function); | 153 new(output_frame_size) FrameDescription(output_frame_size, function); |
| 154 | 154 |
| 155 bool is_bottommost = (0 == frame_index); | 155 bool is_bottommost = (0 == frame_index); |
| 156 bool is_topmost = (output_count_ - 1 == frame_index); | 156 bool is_topmost = (output_count_ - 1 == frame_index); |
| 157 ASSERT(frame_index >= 0 && frame_index < output_count_); | 157 ASSERT(frame_index >= 0 && frame_index < output_count_); |
| 158 ASSERT(output_[frame_index] == NULL); | 158 ASSERT(output_[frame_index] == NULL); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 } | 499 } |
| 500 __ bind(&done); | 500 __ bind(&done); |
| 501 } | 501 } |
| 502 | 502 |
| 503 #undef __ | 503 #undef __ |
| 504 | 504 |
| 505 | 505 |
| 506 } } // namespace v8::internal | 506 } } // namespace v8::internal |
| 507 | 507 |
| 508 #endif // V8_TARGET_ARCH_X64 | 508 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |