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

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

Issue 896643003: Class methods should be non enumerable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use LanguageMode Created 5 years, 10 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
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 } else { 1805 } else {
1806 __ Drop(3); 1806 __ Drop(3);
1807 } 1807 }
1808 break; 1808 break;
1809 1809
1810 case ObjectLiteral::Property::PROTOTYPE: 1810 case ObjectLiteral::Property::PROTOTYPE:
1811 UNREACHABLE(); 1811 UNREACHABLE();
1812 break; 1812 break;
1813 1813
1814 case ObjectLiteral::Property::GETTER: 1814 case ObjectLiteral::Property::GETTER:
1815 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); 1815 __ li(a0, Operand(Smi::FromInt(NONE)));
1816 __ push(a0);
1817 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4);
1816 break; 1818 break;
1817 1819
1818 case ObjectLiteral::Property::SETTER: 1820 case ObjectLiteral::Property::SETTER:
1819 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); 1821 __ li(a0, Operand(Smi::FromInt(NONE)));
1822 __ push(a0);
1823 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
1820 break; 1824 break;
1821 } 1825 }
1822 } 1826 }
1823 } 1827 }
1824 1828
1825 if (expr->has_function()) { 1829 if (expr->has_function()) {
1826 DCHECK(result_saved); 1830 DCHECK(result_saved);
1827 __ ld(a0, MemOperand(sp)); 1831 __ ld(a0, MemOperand(sp));
1828 __ push(a0); 1832 __ push(a0);
1829 __ CallRuntime(Runtime::kToFastProperties, 1); 1833 __ CallRuntime(Runtime::kToFastProperties, 1);
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 switch (property->kind()) { 2535 switch (property->kind()) {
2532 case ObjectLiteral::Property::CONSTANT: 2536 case ObjectLiteral::Property::CONSTANT:
2533 case ObjectLiteral::Property::MATERIALIZED_LITERAL: 2537 case ObjectLiteral::Property::MATERIALIZED_LITERAL:
2534 case ObjectLiteral::Property::PROTOTYPE: 2538 case ObjectLiteral::Property::PROTOTYPE:
2535 UNREACHABLE(); 2539 UNREACHABLE();
2536 case ObjectLiteral::Property::COMPUTED: 2540 case ObjectLiteral::Property::COMPUTED:
2537 __ CallRuntime(Runtime::kDefineClassMethod, 3); 2541 __ CallRuntime(Runtime::kDefineClassMethod, 3);
2538 break; 2542 break;
2539 2543
2540 case ObjectLiteral::Property::GETTER: 2544 case ObjectLiteral::Property::GETTER:
2541 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); 2545 __ li(a0, Operand(Smi::FromInt(DONT_ENUM)));
2546 __ push(a0);
2547 __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4);
2542 break; 2548 break;
2543 2549
2544 case ObjectLiteral::Property::SETTER: 2550 case ObjectLiteral::Property::SETTER:
2545 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); 2551 __ li(a0, Operand(Smi::FromInt(DONT_ENUM)));
2552 __ push(a0);
2553 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
2546 break; 2554 break;
2547 2555
2548 default: 2556 default:
2549 UNREACHABLE(); 2557 UNREACHABLE();
2550 } 2558 }
2551 } 2559 }
2552 2560
2553 // prototype 2561 // prototype
2554 __ CallRuntime(Runtime::kToFastProperties, 1); 2562 __ CallRuntime(Runtime::kToFastProperties, 1);
2555 2563
(...skipping 2807 matching lines...) Expand 10 before | Expand all | Expand 10 after
5363 Assembler::target_address_at(pc_immediate_load_address)) == 5371 Assembler::target_address_at(pc_immediate_load_address)) ==
5364 reinterpret_cast<uint64_t>( 5372 reinterpret_cast<uint64_t>(
5365 isolate->builtins()->OsrAfterStackCheck()->entry())); 5373 isolate->builtins()->OsrAfterStackCheck()->entry()));
5366 return OSR_AFTER_STACK_CHECK; 5374 return OSR_AFTER_STACK_CHECK;
5367 } 5375 }
5368 5376
5369 5377
5370 } } // namespace v8::internal 5378 } } // namespace v8::internal
5371 5379
5372 #endif // V8_TARGET_ARCH_MIPS64 5380 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698