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

Side by Side Diff: src/code-stubs.h

Issue 12052053: Add StubFailureTrampolineFrames (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove extraneous change Created 7 years, 11 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/arm/deoptimizer-arm.cc ('k') | src/deoptimizer.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 V(RegExpConstructResult) \ 70 V(RegExpConstructResult) \
71 V(NumberToString) \ 71 V(NumberToString) \
72 V(CEntry) \ 72 V(CEntry) \
73 V(JSEntry) \ 73 V(JSEntry) \
74 V(KeyedLoadElement) \ 74 V(KeyedLoadElement) \
75 V(KeyedStoreElement) \ 75 V(KeyedStoreElement) \
76 V(DebuggerStatement) \ 76 V(DebuggerStatement) \
77 V(StringDictionaryLookup) \ 77 V(StringDictionaryLookup) \
78 V(ElementsTransitionAndStore) \ 78 V(ElementsTransitionAndStore) \
79 V(StoreArrayLiteralElement) \ 79 V(StoreArrayLiteralElement) \
80 V(StubFailureTrampoline) \
80 V(ProfileEntryHook) 81 V(ProfileEntryHook)
81 82
82 // List of code stubs only used on ARM platforms. 83 // List of code stubs only used on ARM platforms.
83 #ifdef V8_TARGET_ARCH_ARM 84 #ifdef V8_TARGET_ARCH_ARM
84 #define CODE_STUB_LIST_ARM(V) \ 85 #define CODE_STUB_LIST_ARM(V) \
85 V(GetProperty) \ 86 V(GetProperty) \
86 V(SetProperty) \ 87 V(SetProperty) \
87 V(InvokeBuiltin) \ 88 V(InvokeBuiltin) \
88 V(RegExpCEntry) \ 89 V(RegExpCEntry) \
89 V(DirectCEntry) 90 V(DirectCEntry)
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 int MinorKey() { return FPRegisters::encode(fp_registers_); } 1344 int MinorKey() { return FPRegisters::encode(fp_registers_); }
1344 1345
1345 void Generate(MacroAssembler* masm); 1346 void Generate(MacroAssembler* masm);
1346 1347
1347 bool fp_registers_; 1348 bool fp_registers_;
1348 1349
1349 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); 1350 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub);
1350 }; 1351 };
1351 1352
1352 1353
1354 class StubFailureTrampolineStub : public PlatformCodeStub {
1355 public:
1356 StubFailureTrampolineStub() {}
1357
1358 private:
1359 Major MajorKey() { return StubFailureTrampoline; }
1360 int MinorKey() { return 0; }
1361
1362 void Generate(MacroAssembler* masm);
1363
1364 DISALLOW_COPY_AND_ASSIGN(StubFailureTrampolineStub);
1365 };
1366
1367
1353 class ProfileEntryHookStub : public PlatformCodeStub { 1368 class ProfileEntryHookStub : public PlatformCodeStub {
1354 public: 1369 public:
1355 explicit ProfileEntryHookStub() {} 1370 explicit ProfileEntryHookStub() {}
1356 1371
1357 // The profile entry hook function is not allowed to cause a GC. 1372 // The profile entry hook function is not allowed to cause a GC.
1358 virtual bool SometimesSetsUpAFrame() { return false; } 1373 virtual bool SometimesSetsUpAFrame() { return false; }
1359 1374
1360 // Generates a call to the entry hook if it's enabled. 1375 // Generates a call to the entry hook if it's enabled.
1361 static void MaybeCallEntryHook(MacroAssembler* masm); 1376 static void MaybeCallEntryHook(MacroAssembler* masm);
1362 1377
(...skipping 15 matching lines...) Expand all
1378 1393
1379 // The current function entry hook. 1394 // The current function entry hook.
1380 static FunctionEntryHook entry_hook_; 1395 static FunctionEntryHook entry_hook_;
1381 1396
1382 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 1397 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
1383 }; 1398 };
1384 1399
1385 } } // namespace v8::internal 1400 } } // namespace v8::internal
1386 1401
1387 #endif // V8_CODE_STUBS_H_ 1402 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698