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

Side by Side Diff: arguments/src/prettyprinter.cc

Issue 6665067: [Arguments] Remove synthetic properties and all code dealing with them. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental
Patch Set: Created 9 years, 9 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 1420
1421 1421
1422 void JsonAstBuilder::VisitThrow(Throw* expr) { 1422 void JsonAstBuilder::VisitThrow(Throw* expr) {
1423 TagScope tag(this, "Throw"); 1423 TagScope tag(this, "Throw");
1424 Visit(expr->exception()); 1424 Visit(expr->exception());
1425 } 1425 }
1426 1426
1427 1427
1428 void JsonAstBuilder::VisitProperty(Property* expr) { 1428 void JsonAstBuilder::VisitProperty(Property* expr) {
1429 TagScope tag(this, "Property"); 1429 TagScope tag(this, "Property");
1430 {
1431 AttributesScope attributes(this);
1432 AddAttribute("type", expr->is_synthetic() ? "SYNTHETIC" : "NORMAL");
1433 }
1434 Visit(expr->obj()); 1430 Visit(expr->obj());
1435 Visit(expr->key()); 1431 Visit(expr->key());
1436 } 1432 }
1437 1433
1438 1434
1439 void JsonAstBuilder::VisitCall(Call* expr) { 1435 void JsonAstBuilder::VisitCall(Call* expr) {
1440 TagScope tag(this, "Call"); 1436 TagScope tag(this, "Call");
1441 Visit(expr->expression()); 1437 Visit(expr->expression());
1442 VisitExpressions(expr->arguments()); 1438 VisitExpressions(expr->arguments());
1443 } 1439 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 AddAttribute("mode", Variable::Mode2String(decl->mode())); 1526 AddAttribute("mode", Variable::Mode2String(decl->mode()));
1531 } 1527 }
1532 Visit(decl->proxy()); 1528 Visit(decl->proxy());
1533 if (decl->fun() != NULL) Visit(decl->fun()); 1529 if (decl->fun() != NULL) Visit(decl->fun());
1534 } 1530 }
1535 1531
1536 1532
1537 #endif // DEBUG 1533 #endif // DEBUG
1538 1534
1539 } } // namespace v8::internal 1535 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698