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 444 matching lines...) Loading... |
455 : Translation::kSelfLiteralId; | 455 : Translation::kSelfLiteralId; |
456 | 456 |
457 switch (environment->frame_type()) { | 457 switch (environment->frame_type()) { |
458 case JS_FUNCTION: | 458 case JS_FUNCTION: |
459 translation->BeginJSFrame(environment->ast_id(), closure_id, height); | 459 translation->BeginJSFrame(environment->ast_id(), closure_id, height); |
460 break; | 460 break; |
461 case JS_CONSTRUCT: | 461 case JS_CONSTRUCT: |
462 translation->BeginConstructStubFrame(closure_id, translation_size); | 462 translation->BeginConstructStubFrame(closure_id, translation_size); |
463 break; | 463 break; |
464 case JS_SETTER: | 464 case JS_SETTER: |
465 // TODO(svenpanne) Implement me! | 465 ASSERT(translation_size == 2); |
| 466 ASSERT(height == 0); |
| 467 translation->BeginSetterStubFrame(closure_id); |
466 break; | 468 break; |
467 case ARGUMENTS_ADAPTOR: | 469 case ARGUMENTS_ADAPTOR: |
468 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); | 470 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
469 break; | 471 break; |
470 } | 472 } |
471 for (int i = 0; i < translation_size; ++i) { | 473 for (int i = 0; i < translation_size; ++i) { |
472 LOperand* value = environment->values()->at(i); | 474 LOperand* value = environment->values()->at(i); |
473 // spilled_registers_ and spilled_double_registers_ are either | 475 // spilled_registers_ and spilled_double_registers_ are either |
474 // both NULL or both set. | 476 // both NULL or both set. |
475 if (environment->spilled_registers() != NULL && value != NULL) { | 477 if (environment->spilled_registers() != NULL && value != NULL) { |
(...skipping 4852 matching lines...) Loading... |
5328 __ Subu(scratch, result, scratch); | 5330 __ Subu(scratch, result, scratch); |
5329 __ lw(result, FieldMemOperand(scratch, | 5331 __ lw(result, FieldMemOperand(scratch, |
5330 FixedArray::kHeaderSize - kPointerSize)); | 5332 FixedArray::kHeaderSize - kPointerSize)); |
5331 __ bind(&done); | 5333 __ bind(&done); |
5332 } | 5334 } |
5333 | 5335 |
5334 | 5336 |
5335 #undef __ | 5337 #undef __ |
5336 | 5338 |
5337 } } // namespace v8::internal | 5339 } } // namespace v8::internal |
OLD | NEW |