Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: src/objects.cc

Issue 10910161: Partial ia32 implementation of optimized try/catch (by Kevin Millikin) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed build. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8245 matching lines...) Expand 10 before | Expand all | Expand 10 after
8256 8256
8257 switch (opcode) { 8257 switch (opcode) {
8258 case Translation::BEGIN: 8258 case Translation::BEGIN:
8259 UNREACHABLE(); 8259 UNREACHABLE();
8260 break; 8260 break;
8261 8261
8262 case Translation::JS_FRAME: { 8262 case Translation::JS_FRAME: {
8263 int ast_id = iterator.Next(); 8263 int ast_id = iterator.Next();
8264 int function_id = iterator.Next(); 8264 int function_id = iterator.Next();
8265 unsigned height = iterator.Next(); 8265 unsigned height = iterator.Next();
8266 int handler_count = iterator.Next();
8266 PrintF(out, "{ast_id=%d, function=", ast_id); 8267 PrintF(out, "{ast_id=%d, function=", ast_id);
8267 if (function_id != Translation::kSelfLiteralId) { 8268 if (function_id != Translation::kSelfLiteralId) {
8268 Object* function = LiteralArray()->get(function_id); 8269 Object* function = LiteralArray()->get(function_id);
8269 JSFunction::cast(function)->PrintName(out); 8270 JSFunction::cast(function)->PrintName(out);
8270 } else { 8271 } else {
8271 PrintF(out, "<self>"); 8272 PrintF(out, "<self>");
8272 } 8273 }
8273 PrintF(out, ", height=%u}", height); 8274 PrintF(out, ", height=%u, handlers=%d}", height, handler_count);
8274 break; 8275 break;
8275 } 8276 }
8276 8277
8277 case Translation::ARGUMENTS_ADAPTOR_FRAME: 8278 case Translation::ARGUMENTS_ADAPTOR_FRAME:
8278 case Translation::CONSTRUCT_STUB_FRAME: { 8279 case Translation::CONSTRUCT_STUB_FRAME: {
8279 int function_id = iterator.Next(); 8280 int function_id = iterator.Next();
8280 JSFunction* function = 8281 JSFunction* function =
8281 JSFunction::cast(LiteralArray()->get(function_id)); 8282 JSFunction::cast(LiteralArray()->get(function_id));
8282 unsigned height = iterator.Next(); 8283 unsigned height = iterator.Next();
8283 PrintF(out, "{function="); 8284 PrintF(out, "{function=");
(...skipping 4927 matching lines...) Expand 10 before | Expand all | Expand 10 after
13211 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 13212 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
13212 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 13213 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
13213 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 13214 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
13214 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 13215 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
13215 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 13216 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
13216 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 13217 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
13217 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 13218 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
13218 } 13219 }
13219 13220
13220 } } // namespace v8::internal 13221 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698