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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 : Translation::kSelfLiteralId; | 374 : Translation::kSelfLiteralId; |
375 | 375 |
376 switch (environment->frame_type()) { | 376 switch (environment->frame_type()) { |
377 case JS_FUNCTION: | 377 case JS_FUNCTION: |
378 translation->BeginJSFrame(environment->ast_id(), closure_id, height); | 378 translation->BeginJSFrame(environment->ast_id(), closure_id, height); |
379 break; | 379 break; |
380 case JS_CONSTRUCT: | 380 case JS_CONSTRUCT: |
381 translation->BeginConstructStubFrame(closure_id, translation_size); | 381 translation->BeginConstructStubFrame(closure_id, translation_size); |
382 break; | 382 break; |
383 case JS_SETTER: | 383 case JS_SETTER: |
384 // TODO(svenpanne) Implement me! | 384 ASSERT(translation_size == 2); |
| 385 ASSERT(height == 0); |
| 386 translation->BeginSetterStubFrame(closure_id); |
385 break; | 387 break; |
386 case ARGUMENTS_ADAPTOR: | 388 case ARGUMENTS_ADAPTOR: |
387 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); | 389 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
388 break; | 390 break; |
389 } | 391 } |
390 for (int i = 0; i < translation_size; ++i) { | 392 for (int i = 0; i < translation_size; ++i) { |
391 LOperand* value = environment->values()->at(i); | 393 LOperand* value = environment->values()->at(i); |
392 // spilled_registers_ and spilled_double_registers_ are either | 394 // spilled_registers_ and spilled_double_registers_ are either |
393 // both NULL or both set. | 395 // both NULL or both set. |
394 if (environment->spilled_registers() != NULL && value != NULL) { | 396 if (environment->spilled_registers() != NULL && value != NULL) { |
(...skipping 4767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5162 FixedArray::kHeaderSize - kPointerSize)); | 5164 FixedArray::kHeaderSize - kPointerSize)); |
5163 __ bind(&done); | 5165 __ bind(&done); |
5164 } | 5166 } |
5165 | 5167 |
5166 | 5168 |
5167 #undef __ | 5169 #undef __ |
5168 | 5170 |
5169 } } // namespace v8::internal | 5171 } } // namespace v8::internal |
5170 | 5172 |
5171 #endif // V8_TARGET_ARCH_X64 | 5173 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |