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 415 matching lines...) Loading... |
426 ? DefineDeoptimizationLiteral(environment->closure()) | 426 ? DefineDeoptimizationLiteral(environment->closure()) |
427 : Translation::kSelfLiteralId; | 427 : Translation::kSelfLiteralId; |
428 switch (environment->frame_type()) { | 428 switch (environment->frame_type()) { |
429 case JS_FUNCTION: | 429 case JS_FUNCTION: |
430 translation->BeginJSFrame(environment->ast_id(), closure_id, height); | 430 translation->BeginJSFrame(environment->ast_id(), closure_id, height); |
431 break; | 431 break; |
432 case JS_CONSTRUCT: | 432 case JS_CONSTRUCT: |
433 translation->BeginConstructStubFrame(closure_id, translation_size); | 433 translation->BeginConstructStubFrame(closure_id, translation_size); |
434 break; | 434 break; |
435 case JS_SETTER: | 435 case JS_SETTER: |
436 // TODO(svenpanne) Implement me! | 436 ASSERT(translation_size == 2); |
| 437 ASSERT(height == 0); |
| 438 translation->BeginSetterStubFrame(closure_id); |
437 break; | 439 break; |
438 case ARGUMENTS_ADAPTOR: | 440 case ARGUMENTS_ADAPTOR: |
439 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); | 441 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
440 break; | 442 break; |
441 } | 443 } |
442 for (int i = 0; i < translation_size; ++i) { | 444 for (int i = 0; i < translation_size; ++i) { |
443 LOperand* value = environment->values()->at(i); | 445 LOperand* value = environment->values()->at(i); |
444 // spilled_registers_ and spilled_double_registers_ are either | 446 // spilled_registers_ and spilled_double_registers_ are either |
445 // both NULL or both set. | 447 // both NULL or both set. |
446 if (environment->spilled_registers() != NULL && value != NULL) { | 448 if (environment->spilled_registers() != NULL && value != NULL) { |
(...skipping 4975 matching lines...) Loading... |
5422 FixedArray::kHeaderSize - kPointerSize)); | 5424 FixedArray::kHeaderSize - kPointerSize)); |
5423 __ bind(&done); | 5425 __ bind(&done); |
5424 } | 5426 } |
5425 | 5427 |
5426 | 5428 |
5427 #undef __ | 5429 #undef __ |
5428 | 5430 |
5429 } } // namespace v8::internal | 5431 } } // namespace v8::internal |
5430 | 5432 |
5431 #endif // V8_TARGET_ARCH_IA32 | 5433 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |