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 8285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8296 Object* function = LiteralArray()->get(function_id); | 8296 Object* function = LiteralArray()->get(function_id); |
8297 JSFunction::cast(function)->PrintName(out); | 8297 JSFunction::cast(function)->PrintName(out); |
8298 } else { | 8298 } else { |
8299 PrintF(out, "<self>"); | 8299 PrintF(out, "<self>"); |
8300 } | 8300 } |
8301 PrintF(out, ", height=%u}", height); | 8301 PrintF(out, ", height=%u}", height); |
8302 break; | 8302 break; |
8303 } | 8303 } |
8304 | 8304 |
8305 case Translation::ARGUMENTS_ADAPTOR_FRAME: | 8305 case Translation::ARGUMENTS_ADAPTOR_FRAME: |
8306 case Translation::CONSTRUCT_STUB_FRAME: { | 8306 case Translation::CONSTRUCT_STUB_FRAME: |
8307 case Translation::SETTER_STUB_FRAME: { | |
Michael Starzinger
2012/08/16 17:20:04
Can we make that an own case that doesn't print th
Sven Panne
2012/08/17 07:27:26
Done.
| |
8307 int function_id = iterator.Next(); | 8308 int function_id = iterator.Next(); |
8308 JSFunction* function = | 8309 JSFunction* function = |
8309 JSFunction::cast(LiteralArray()->get(function_id)); | 8310 JSFunction::cast(LiteralArray()->get(function_id)); |
8310 unsigned height = iterator.Next(); | 8311 unsigned height = |
8312 opcode == Translation::SETTER_STUB_FRAME ? 2 : iterator.Next(); | |
Michael Starzinger
2012/08/16 17:20:04
Actually, height = 0 for the setter stub, but that
Sven Panne
2012/08/17 07:27:26
Well, it is totally unclear what is *really* meant
| |
8311 PrintF(out, "{function="); | 8313 PrintF(out, "{function="); |
8312 function->PrintName(out); | 8314 function->PrintName(out); |
8313 PrintF(out, ", height=%u}", height); | 8315 PrintF(out, ", height=%u}", height); |
8314 break; | 8316 break; |
8315 } | 8317 } |
8316 | 8318 |
8317 case Translation::DUPLICATE: | 8319 case Translation::DUPLICATE: |
8318 break; | 8320 break; |
8319 | 8321 |
8320 case Translation::REGISTER: { | 8322 case Translation::REGISTER: { |
(...skipping 4834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
13155 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13157 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13156 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13158 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13157 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13159 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13158 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13160 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13159 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13161 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13160 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13162 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13161 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13163 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13162 } | 13164 } |
13163 | 13165 |
13164 } } // namespace v8::internal | 13166 } } // namespace v8::internal |
OLD | NEW |