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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 227483006: Version 3.25.28.6 (merged r20316, r20366, r20428, r20451) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.25
Patch Set: Created 6 years, 8 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/version.cc ('k') | test/cctest/test-parsing.cc » ('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 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 if (result_saved) { 1872 if (result_saved) {
1873 __ addp(rsp, Immediate(kPointerSize)); // literal index 1873 __ addp(rsp, Immediate(kPointerSize)); // literal index
1874 context()->PlugTOS(); 1874 context()->PlugTOS();
1875 } else { 1875 } else {
1876 context()->Plug(rax); 1876 context()->Plug(rax);
1877 } 1877 }
1878 } 1878 }
1879 1879
1880 1880
1881 void FullCodeGenerator::VisitAssignment(Assignment* expr) { 1881 void FullCodeGenerator::VisitAssignment(Assignment* expr) {
1882 ASSERT(expr->target()->IsValidLeftHandSide()); 1882 ASSERT(expr->target()->IsValidReferenceExpression());
1883 1883
1884 Comment cmnt(masm_, "[ Assignment"); 1884 Comment cmnt(masm_, "[ Assignment");
1885 1885
1886 // Left-hand side can only be a property, a global or a (parameter or local) 1886 // Left-hand side can only be a property, a global or a (parameter or local)
1887 // slot. 1887 // slot.
1888 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY }; 1888 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
1889 LhsKind assign_type = VARIABLE; 1889 LhsKind assign_type = VARIABLE;
1890 Property* property = expr->target()->AsProperty(); 1890 Property* property = expr->target()->AsProperty();
1891 if (property != NULL) { 1891 if (property != NULL) {
1892 assign_type = (property->key()->IsPropertyName()) 1892 assign_type = (property->key()->IsPropertyName())
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2371 __ Pop(rdx); 2371 __ Pop(rdx);
2372 BinaryOpICStub stub(op, mode); 2372 BinaryOpICStub stub(op, mode);
2373 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. 2373 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code.
2374 CallIC(stub.GetCode(isolate()), expr->BinaryOperationFeedbackId()); 2374 CallIC(stub.GetCode(isolate()), expr->BinaryOperationFeedbackId());
2375 patch_site.EmitPatchInfo(); 2375 patch_site.EmitPatchInfo();
2376 context()->Plug(rax); 2376 context()->Plug(rax);
2377 } 2377 }
2378 2378
2379 2379
2380 void FullCodeGenerator::EmitAssignment(Expression* expr) { 2380 void FullCodeGenerator::EmitAssignment(Expression* expr) {
2381 ASSERT(expr->IsValidLeftHandSide()); 2381 ASSERT(expr->IsValidReferenceExpression());
2382 2382
2383 // Left-hand side can only be a property, a global or a (parameter or local) 2383 // Left-hand side can only be a property, a global or a (parameter or local)
2384 // slot. 2384 // slot.
2385 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY }; 2385 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
2386 LhsKind assign_type = VARIABLE; 2386 LhsKind assign_type = VARIABLE;
2387 Property* prop = expr->AsProperty(); 2387 Property* prop = expr->AsProperty();
2388 if (prop != NULL) { 2388 if (prop != NULL) {
2389 assign_type = (prop->key()->IsPropertyName()) 2389 assign_type = (prop->key()->IsPropertyName())
2390 ? NAMED_PROPERTY 2390 ? NAMED_PROPERTY
2391 : KEYED_PROPERTY; 2391 : KEYED_PROPERTY;
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
4310 break; 4310 break;
4311 } 4311 }
4312 4312
4313 default: 4313 default:
4314 UNREACHABLE(); 4314 UNREACHABLE();
4315 } 4315 }
4316 } 4316 }
4317 4317
4318 4318
4319 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { 4319 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
4320 ASSERT(expr->expression()->IsValidLeftHandSide()); 4320 ASSERT(expr->expression()->IsValidReferenceExpression());
4321 4321
4322 Comment cmnt(masm_, "[ CountOperation"); 4322 Comment cmnt(masm_, "[ CountOperation");
4323 SetSourcePosition(expr->position()); 4323 SetSourcePosition(expr->position());
4324 4324
4325 // Expression can only be a property, a global or a (parameter or local) 4325 // Expression can only be a property, a global or a (parameter or local)
4326 // slot. 4326 // slot.
4327 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY }; 4327 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
4328 LhsKind assign_type = VARIABLE; 4328 LhsKind assign_type = VARIABLE;
4329 Property* prop = expr->expression()->AsProperty(); 4329 Property* prop = expr->expression()->AsProperty();
4330 // In case of a property we use the uninitialized expression context 4330 // In case of a property we use the uninitialized expression context
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
4936 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4936 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4937 Assembler::target_address_at(call_target_address, 4937 Assembler::target_address_at(call_target_address,
4938 unoptimized_code)); 4938 unoptimized_code));
4939 return OSR_AFTER_STACK_CHECK; 4939 return OSR_AFTER_STACK_CHECK;
4940 } 4940 }
4941 4941
4942 4942
4943 } } // namespace v8::internal 4943 } } // namespace v8::internal
4944 4944
4945 #endif // V8_TARGET_ARCH_X64 4945 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698