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

Side by Side Diff: src/x64/builtins-x64.cc

Issue 6992072: Implement set trap for proxies, and revamp class hierarchy in preparation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 353 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
354 354
355 // If the result is an object (in the ECMA sense), we should get rid 355 // If the result is an object (in the ECMA sense), we should get rid
356 // of the receiver and use the result; see ECMA-262 section 13.2.2-7 356 // of the receiver and use the result; see ECMA-262 section 13.2.2-7
357 // on page 74. 357 // on page 74.
358 Label use_receiver, exit; 358 Label use_receiver, exit;
359 // If the result is a smi, it is *not* an object in the ECMA sense. 359 // If the result is a smi, it is *not* an object in the ECMA sense.
360 __ JumpIfSmi(rax, &use_receiver); 360 __ JumpIfSmi(rax, &use_receiver);
361 361
362 // If the type of the result (stored in its map) is less than 362 // If the type of the result (stored in its map) is less than
363 // FIRST_JS_OBJECT_TYPE, it is not an object in the ECMA sense. 363 // FIRST_OBJECT_OR_FUNCTION_CLASS_TYPE, it is not an object in the ECMA sense.
364 __ CmpObjectType(rax, FIRST_JS_OBJECT_TYPE, rcx); 364 STATIC_ASSERT(LAST_OBJECT_OR_FUNCTION_CLASS_TYPE == LAST_TYPE);
365 __ CmpObjectType(rax, FIRST_OBJECT_OR_FUNCTION_CLASS_TYPE, rcx);
365 __ j(above_equal, &exit); 366 __ j(above_equal, &exit);
366 367
367 // Throw away the result of the constructor invocation and use the 368 // Throw away the result of the constructor invocation and use the
368 // on-stack receiver as the result. 369 // on-stack receiver as the result.
369 __ bind(&use_receiver); 370 __ bind(&use_receiver);
370 __ movq(rax, Operand(rsp, 0)); 371 __ movq(rax, Operand(rsp, 0));
371 372
372 // Restore the arguments count and leave the construct frame. 373 // Restore the arguments count and leave the construct frame.
373 __ bind(&exit); 374 __ bind(&exit);
374 __ movq(rbx, Operand(rsp, kPointerSize)); // get arguments count 375 __ movq(rbx, Operand(rsp, kPointerSize)); // get arguments count
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); 1496 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR);
1496 generator.Generate(); 1497 generator.Generate();
1497 } 1498 }
1498 1499
1499 1500
1500 #undef __ 1501 #undef __
1501 1502
1502 } } // namespace v8::internal 1503 } } // namespace v8::internal
1503 1504
1504 #endif // V8_TARGET_ARCH_X64 1505 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/arm/lithium-codegen-arm.cc ('K') | « src/runtime.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698