| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 ? DefineDeoptimizationLiteral(environment->closure()) | 445 ? DefineDeoptimizationLiteral(environment->closure()) |
| 446 : Translation::kSelfLiteralId; | 446 : Translation::kSelfLiteralId; |
| 447 | 447 |
| 448 switch (environment->frame_type()) { | 448 switch (environment->frame_type()) { |
| 449 case JS_FUNCTION: | 449 case JS_FUNCTION: |
| 450 translation->BeginJSFrame(environment->ast_id(), closure_id, height); | 450 translation->BeginJSFrame(environment->ast_id(), closure_id, height); |
| 451 break; | 451 break; |
| 452 case JS_CONSTRUCT: | 452 case JS_CONSTRUCT: |
| 453 translation->BeginConstructStubFrame(closure_id, translation_size); | 453 translation->BeginConstructStubFrame(closure_id, translation_size); |
| 454 break; | 454 break; |
| 455 case JS_GETTER: |
| 456 ASSERT(translation_size == 1); |
| 457 ASSERT(height == 0); |
| 458 translation->BeginGetterStubFrame(closure_id); |
| 459 break; |
| 455 case JS_SETTER: | 460 case JS_SETTER: |
| 456 ASSERT(translation_size == 2); | 461 ASSERT(translation_size == 2); |
| 457 ASSERT(height == 0); | 462 ASSERT(height == 0); |
| 458 translation->BeginSetterStubFrame(closure_id); | 463 translation->BeginSetterStubFrame(closure_id); |
| 459 break; | 464 break; |
| 460 case ARGUMENTS_ADAPTOR: | 465 case ARGUMENTS_ADAPTOR: |
| 461 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); | 466 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
| 462 break; | 467 break; |
| 463 } | 468 } |
| 464 for (int i = 0; i < translation_size; ++i) { | 469 for (int i = 0; i < translation_size; ++i) { |
| (...skipping 4951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5416 __ Subu(scratch, result, scratch); | 5421 __ Subu(scratch, result, scratch); |
| 5417 __ lw(result, FieldMemOperand(scratch, | 5422 __ lw(result, FieldMemOperand(scratch, |
| 5418 FixedArray::kHeaderSize - kPointerSize)); | 5423 FixedArray::kHeaderSize - kPointerSize)); |
| 5419 __ bind(&done); | 5424 __ bind(&done); |
| 5420 } | 5425 } |
| 5421 | 5426 |
| 5422 | 5427 |
| 5423 #undef __ | 5428 #undef __ |
| 5424 | 5429 |
| 5425 } } // namespace v8::internal | 5430 } } // namespace v8::internal |
| OLD | NEW |